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

Unified Diff: media/gpu/avda_shared_state.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_picture_buffer_manager.cc ('k') | media/gpu/ipc/client/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/avda_shared_state.cc
diff --git a/media/gpu/avda_shared_state.cc b/media/gpu/avda_shared_state.cc
index 1090c2b74e9180155a6ef93bd95060b05fe99e54..48ad88cc591907965b318bf4bce22dd99bec4df3 100644
--- a/media/gpu/avda_shared_state.cc
+++ b/media/gpu/avda_shared_state.cc
@@ -122,6 +122,8 @@ void AVDASharedState::WaitForFrameAvailable() {
void AVDASharedState::SetSurfaceTexture(
scoped_refptr<gl::SurfaceTexture> surface_texture,
GLuint attached_service_id) {
+ DCHECK(surface_texture);
+ DCHECK(attached_service_id);
surface_texture_ = surface_texture;
surface_texture_service_id_ = attached_service_id;
context_ = gl::GLContext::GetCurrent();
« no previous file with comments | « media/gpu/avda_picture_buffer_manager.cc ('k') | media/gpu/ipc/client/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698