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

Unified Diff: media/gpu/avda_picture_buffer_manager.h

Issue 2629223003: media: Ensure MediaCodecs are released before attached SurfaceTextures (Closed)
Patch Set: more comments Created 3 years, 11 months 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
Index: media/gpu/avda_picture_buffer_manager.h
diff --git a/media/gpu/avda_picture_buffer_manager.h b/media/gpu/avda_picture_buffer_manager.h
index 071e69f53d0c1c7ea224901aee6233b57b6f20ad..76c7ba3d3ebc9265382ee23b0b6067b674787afa 100644
--- a/media/gpu/avda_picture_buffer_manager.h
+++ b/media/gpu/avda_picture_buffer_manager.h
@@ -82,6 +82,10 @@ class MEDIA_GPU_EXPORT AVDAPictureBufferManager {
// Are there any unrendered picture buffers oustanding?
bool HasUnrenderedPictures() const;
+ scoped_refptr<gl::SurfaceTexture> surface_texture() {
+ return surface_texture_;
+ }
+
// Returns the GL texture target that the PictureBuffer textures use.
// Always use OES textures even though this will cause flickering in dev tools
// when inspecting a fullscreen video. See http://crbug.com/592798

Powered by Google App Engine
This is Rietveld 408576698