Chromium Code Reviews| 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_|. |
|
watk
2015/09/25 21:31:17
media_codec_ isn't a field here
|
| + scoped_refptr<gfx::SurfaceTexture> surface_texture_; |
| + |
| + // The texture id which is set to |surface_texture_|. |
| + uint32 surface_texture_id_; |
| }; |
| } // namespace content |