Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: media/gpu/avda_codec_image.cc

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Address comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/avda_codec_image.h ('k') | media/gpu/avda_picture_buffer_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/avda_codec_image.cc
diff --git a/media/gpu/avda_codec_image.cc b/media/gpu/avda_codec_image.cc
index 15b32d9acfaa3903dc3f22a2acbbec16c6f9cf68..40d8bdbc314704988fea1844d333c0dee4505e91 100644
--- a/media/gpu/avda_codec_image.cc
+++ b/media/gpu/avda_codec_image.cc
@@ -26,7 +26,7 @@ AVDACodecImage::AVDACodecImage(
codec_buffer_index_(kInvalidCodecBufferIndex),
media_codec_(codec),
decoder_(decoder),
- has_surface_texture_(!!shared_state_->surface_texture_service_id()),
+ has_surface_texture_(false),
texture_(0) {}
AVDACodecImage::~AVDACodecImage() {}
@@ -132,6 +132,22 @@ void AVDACodecImage::CodecChanged(MediaCodecBridge* codec) {
codec_buffer_index_ = kInvalidCodecBufferIndex;
}
+void AVDACodecImage::SetBufferMetadata(int buffer_index,
+ bool has_surface_texture,
+ const gfx::Size& size) {
+ has_surface_texture_ = has_surface_texture;
+ codec_buffer_index_ = buffer_index;
+ size_ = size;
+}
+
+bool AVDACodecImage::SetSharedState(
+ scoped_refptr<AVDASharedState> shared_state) {
+ if (shared_state == shared_state_)
+ return false;
+ shared_state_ = shared_state;
+ return true;
+}
+
void AVDACodecImage::UpdateSurfaceInternal(
UpdateMode update_mode,
RestoreBindingsMode attached_bindings_mode) {
« no previous file with comments | « media/gpu/avda_codec_image.h ('k') | media/gpu/avda_picture_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698