OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void OnWillDestroyStub() override; | 54 void OnWillDestroyStub() override; |
55 | 55 |
56 // Function to delegate sending to actual sender. | 56 // Function to delegate sending to actual sender. |
57 bool Send(IPC::Message* message) override; | 57 bool Send(IPC::Message* message) override; |
58 | 58 |
59 // Initialize VDAs from the set of VDAs supported for current platform until | 59 // Initialize VDAs from the set of VDAs supported for current platform until |
60 // one of them succeeds for given |profile|. Send the |init_done_msg| when | 60 // one of them succeeds for given |profile|. Send the |init_done_msg| when |
61 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen | 61 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen |
62 // VDA can decode on IO thread. | 62 // VDA can decode on IO thread. |
63 void Initialize(const media::VideoCodecProfile profile, | 63 void Initialize(const media::VideoCodecProfile profile, |
| 64 uint32 min_picture_count, |
64 IPC::Message* init_done_msg); | 65 IPC::Message* init_done_msg); |
65 | 66 |
66 // Static query for supported profiles. This query calls the appropriate | 67 // Static query for supported profiles. This query calls the appropriate |
67 // platform-specific version. The returned supported profiles vector will | 68 // platform-specific version. The returned supported profiles vector will |
68 // not contain duplicates. | 69 // not contain duplicates. |
69 static gpu::VideoDecodeAcceleratorSupportedProfiles GetSupportedProfiles(); | 70 static gpu::VideoDecodeAcceleratorSupportedProfiles GetSupportedProfiles(); |
70 | 71 |
71 private: | 72 private: |
72 typedef scoped_ptr<media::VideoDecodeAccelerator>( | 73 typedef scoped_ptr<media::VideoDecodeAccelerator>( |
73 GpuVideoDecodeAccelerator::*CreateVDAFp)(); | 74 GpuVideoDecodeAccelerator::*CreateVDAFp)(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 // A map from picture buffer ID to TextureRef that have not been cleared. | 154 // A map from picture buffer ID to TextureRef that have not been cleared. |
154 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; | 155 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; |
155 | 156 |
156 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 157 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
157 }; | 158 }; |
158 | 159 |
159 } // namespace content | 160 } // namespace content |
160 | 161 |
161 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 162 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |