| 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 20 matching lines...) Expand all Loading... |
| 31 public GpuCommandBufferStub::DestructionObserver { | 31 public GpuCommandBufferStub::DestructionObserver { |
| 32 public: | 32 public: |
| 33 // Each of the arguments to the constructor must outlive this object. | 33 // Each of the arguments to the constructor must outlive this object. |
| 34 // |stub->decoder()| will be made current around any operation that touches | 34 // |stub->decoder()| will be made current around any operation that touches |
| 35 // the underlying VDA so that it can make GL calls safely. | 35 // the underlying VDA so that it can make GL calls safely. |
| 36 GpuVideoDecodeAccelerator( | 36 GpuVideoDecodeAccelerator( |
| 37 int32 host_route_id, | 37 int32 host_route_id, |
| 38 GpuCommandBufferStub* stub, | 38 GpuCommandBufferStub* stub, |
| 39 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); | 39 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
| 40 | 40 |
| 41 // Static query for supported profiles. This query calls the appropriate | 41 // Static query for the capabilities, which includes the supported profiles. |
| 42 // platform-specific version. The returned supported profiles vector will | 42 // This query calls the appropriate platform-specific version. The returned |
| 43 // not contain duplicates. | 43 // capabilities will not contain duplicate supported profile entries. |
| 44 static gpu::VideoDecodeAcceleratorSupportedProfiles GetSupportedProfiles(); | 44 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities(); |
| 45 | 45 |
| 46 // IPC::Listener implementation. | 46 // IPC::Listener implementation. |
| 47 bool OnMessageReceived(const IPC::Message& message) override; | 47 bool OnMessageReceived(const IPC::Message& message) override; |
| 48 | 48 |
| 49 // media::VideoDecodeAccelerator::Client implementation. | 49 // media::VideoDecodeAccelerator::Client implementation. |
| 50 void NotifyCdmAttached(bool success) override; | 50 void NotifyCdmAttached(bool success) override; |
| 51 void ProvidePictureBuffers(uint32 requested_num_of_buffers, | 51 void ProvidePictureBuffers(uint32 requested_num_of_buffers, |
| 52 const gfx::Size& dimensions, | 52 const gfx::Size& dimensions, |
| 53 uint32 texture_target) override; | 53 uint32 texture_target) override; |
| 54 void DismissPictureBuffer(int32 picture_buffer_id) override; | 54 void DismissPictureBuffer(int32 picture_buffer_id) override; |
| (...skipping 101 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 |