Chromium Code Reviews| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 void NotifyResetDone() override; | 58 void NotifyResetDone() override; |
| 59 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 59 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
| 60 | 60 |
| 61 // GpuCommandBufferStub::DestructionObserver implementation. | 61 // GpuCommandBufferStub::DestructionObserver implementation. |
| 62 void OnWillDestroyStub() override; | 62 void OnWillDestroyStub() override; |
| 63 | 63 |
| 64 // Function to delegate sending to actual sender. | 64 // Function to delegate sending to actual sender. |
| 65 bool Send(IPC::Message* message) override; | 65 bool Send(IPC::Message* message) override; |
| 66 | 66 |
| 67 // Initialize VDAs from the set of VDAs supported for current platform until | 67 // Initialize VDAs from the set of VDAs supported for current platform until |
| 68 // one of them succeeds for given |profile|. Send the |init_done_msg| when | 68 // one of them succeeds for given |profile|. Send the |init_done_msg| when |
|
xhwang
2015/12/01 07:15:02
update this comment
Tima Vaisburd
2015/12/02 02:25:06
Done.
| |
| 69 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen | 69 // done. filter_ is passed to GpuCommandBufferStub channel only if the chosen |
| 70 // VDA can decode on IO thread. | 70 // VDA can decode on IO thread. |
| 71 void Initialize(const media::VideoCodecProfile profile, | 71 void Initialize(const media::VideoDecodeAccelerator::InitParams& params, |
| 72 IPC::Message* init_done_msg); | 72 IPC::Message* init_done_msg); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 typedef scoped_ptr<media::VideoDecodeAccelerator>( | 75 typedef scoped_ptr<media::VideoDecodeAccelerator>( |
| 76 GpuVideoDecodeAccelerator::*CreateVDAFp)(); | 76 GpuVideoDecodeAccelerator::*CreateVDAFp)(); |
| 77 | 77 |
| 78 class MessageFilter; | 78 class MessageFilter; |
| 79 | 79 |
| 80 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); | 80 scoped_ptr<media::VideoDecodeAccelerator> CreateDXVAVDA(); |
| 81 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); | 81 scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2VDA(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 | 156 |
| 157 // A map from picture buffer ID to TextureRef that have not been cleared. | 157 // A map from picture buffer ID to TextureRef that have not been cleared. |
| 158 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; | 158 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; |
| 159 | 159 |
| 160 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 160 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace content | 163 } // namespace content |
| 164 | 164 |
| 165 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 165 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |