summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/android/codec_image.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/media/gpu/android/codec_image.h
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/media/gpu/android/codec_image.h')
-rw-r--r--chromium/media/gpu/android/codec_image.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/chromium/media/gpu/android/codec_image.h b/chromium/media/gpu/android/codec_image.h
index 8693118f918..c765e24dbfe 100644
--- a/chromium/media/gpu/android/codec_image.h
+++ b/chromium/media/gpu/android/codec_image.h
@@ -15,7 +15,6 @@
#include "base/memory/ref_counted_delete_on_sequence.h"
#include "gpu/command_buffer/service/gl_stream_texture_image.h"
#include "gpu/command_buffer/service/stream_texture_shared_image_interface.h"
-#include "media/gpu/android/codec_buffer_wait_coordinator.h"
#include "media/gpu/android/codec_output_buffer_renderer.h"
#include "media/gpu/android/promotion_hint_aggregator.h"
#include "media/gpu/media_gpu_export.h"
@@ -54,7 +53,7 @@ class MEDIA_GPU_EXPORT CodecImage
// not in use.
void Initialize(
std::unique_ptr<CodecOutputBufferRenderer> output_buffer_renderer,
- scoped_refptr<CodecBufferWaitCoordinator> codec_buffer_wait_coordinator,
+ bool is_texture_owner_backed,
PromotionHintAggregator::NotifyPromotionHintCB promotion_hint_cb);
// Add a callback that will be called when we're marked as unused. Does not
@@ -91,7 +90,6 @@ class MEDIA_GPU_EXPORT CodecImage
GetAHardwareBuffer() override;
gfx::Rect GetCropRect() override;
// gpu::gles2::GLStreamTextureMatrix implementation
- void GetTextureMatrix(float xform[16]) override;
// Currently this API is implemented by the NotifyOverlayPromotion, since this
// API is expected to be removed.
void NotifyPromotionHint(bool promotion_hint,
@@ -129,18 +127,11 @@ class MEDIA_GPU_EXPORT CodecImage
// Whether this image is backed by a texture owner.
- // We want to check for texture_owner owned by
- // |codec_buffer_wait_coordinator_| and hence only checking for
- // |codec_buffer_wait_coordinator_| is enough here.
- // TODO(vikassoni): Update the method name in future refactorings.
- bool is_texture_owner_backed() const {
- return !!codec_buffer_wait_coordinator_;
- }
+ bool is_texture_owner_backed() const { return is_texture_owner_backed_; }
scoped_refptr<gpu::TextureOwner> texture_owner() const {
- return codec_buffer_wait_coordinator_
- ? codec_buffer_wait_coordinator_->texture_owner()
- : nullptr;
+ return output_buffer_renderer_ ? output_buffer_renderer_->texture_owner()
+ : nullptr;
}
// Renders this image to the front buffer of its backing surface.
@@ -180,9 +171,8 @@ class MEDIA_GPU_EXPORT CodecImage
// frame available event before calling UpdateTexImage().
bool RenderToTextureOwnerFrontBuffer(BindingsMode bindings_mode);
- // The CodecBufferWaitCoordinator that |output_buffer_| will be rendered to.
- // Or null, if this image is backed by an overlay.
- scoped_refptr<CodecBufferWaitCoordinator> codec_buffer_wait_coordinator_;
+ // Whether this image is texture_owner or overlay backed.
+ bool is_texture_owner_backed_ = false;
// The bounds last sent to the overlay.
gfx::Rect most_recent_bounds_;