OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/common/gpu/media/android_video_decode_accelerator.h" | 10 #include "content/common/gpu/media/android_video_decode_accelerator.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 void Cleanup(const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; | 34 void Cleanup(const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; |
35 uint32 GetNumPictureBuffers() const override; | 35 uint32 GetNumPictureBuffers() const override; |
36 uint32 GetTextureTarget() const override; | 36 uint32 GetTextureTarget() const override; |
37 scoped_refptr<gfx::SurfaceTexture> CreateSurfaceTexture() override; | 37 scoped_refptr<gfx::SurfaceTexture> CreateSurfaceTexture() override; |
38 void UseCodecBufferForPictureBuffer(int32 codec_buffer_index, | 38 void UseCodecBufferForPictureBuffer(int32 codec_buffer_index, |
39 const media::PictureBuffer&) override; | 39 const media::PictureBuffer&) override; |
40 void CodecChanged( | 40 void CodecChanged( |
41 media::VideoCodecBridge*, | 41 media::VideoCodecBridge*, |
42 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; | 42 const AndroidVideoDecodeAccelerator::OutputBufferMap&) override; |
43 | 43 |
| 44 static media::VideoDecodeAccelerator::SupportedProfile::ProfileFlags |
| 45 GetProfileFlags() { |
| 46 return media::VideoDecodeAccelerator::SupportedProfile::kNoFlags; |
| 47 } |
| 48 |
44 private: | 49 private: |
45 // Used for copy the texture from surface texture to picture buffers. | 50 // Used for copy the texture from surface texture to picture buffers. |
46 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; | 51 scoped_ptr<gpu::CopyTextureCHROMIUMResourceManager> copier_; |
47 | 52 |
48 AVDAStateProvider* state_provider_; | 53 AVDAStateProvider* state_provider_; |
49 | 54 |
50 // A container of texture. Used to set a texture to |media_codec_|. | 55 // A container of texture. Used to set a texture to |media_codec_|. |
51 scoped_refptr<gfx::SurfaceTexture> surface_texture_; | 56 scoped_refptr<gfx::SurfaceTexture> surface_texture_; |
52 | 57 |
53 // The texture id which is set to |surface_texture_|. | 58 // The texture id which is set to |surface_texture_|. |
54 uint32 surface_texture_id_; | 59 uint32 surface_texture_id_; |
55 | 60 |
56 media::VideoCodecBridge* media_codec_; | 61 media::VideoCodecBridge* media_codec_; |
57 }; | 62 }; |
58 | 63 |
59 } // namespace content | 64 } // namespace content |
60 | 65 |
61 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ | 66 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_COPYING_BACKING_STRATEGY_H_ |
OLD | NEW |