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

Unified Diff: content/common/gpu/media/android_copying_backing_strategy.h

Issue 1370443007: Move SurfaceTexture construction to BackingStrategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 5 years, 3 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
« no previous file with comments | « no previous file | content/common/gpu/media/android_copying_backing_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/android_copying_backing_strategy.h
diff --git a/content/common/gpu/media/android_copying_backing_strategy.h b/content/common/gpu/media/android_copying_backing_strategy.h
index 354dcfc03d732c73b4b18552c58c6a14ec22ffbf..7b2fa6590584a32c6fcd5df4df99f643dabd7828 100644
--- a/content/common/gpu/media/android_copying_backing_strategy.h
+++ b/content/common/gpu/media/android_copying_backing_strategy.h
@@ -35,15 +35,21 @@ class CONTENT_EXPORT AndroidCopyingBackingStrategy
void Cleanup() override;
uint32 GetNumPictureBuffers() const override;
uint32 GetTextureTarget() const override;
- void AssignCurrentSurfaceToPictureBuffer(
- int32 codec_buffer_index,
- const media::PictureBuffer&) override;
+ scoped_refptr<gfx::SurfaceTexture> CreateSurfaceTexture() override;
+ void UseCodecBufferForPictureBuffer(int32 codec_buffer_index,
+ const media::PictureBuffer&) override;
private:
// Used for copy the texture from surface texture to picture buffers.
scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_;
AndroidVideoDecodeAcceleratorStateProvider* state_provider_;
+
+ // A container of texture. Used to set a texture to |media_codec_|.
+ scoped_refptr<gfx::SurfaceTexture> surface_texture_;
+
+ // The texture id which is set to |surface_texture_|.
+ uint32 surface_texture_id_;
};
} // namespace content
« no previous file with comments | « no previous file | content/common/gpu/media/android_copying_backing_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698