Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved flags into VDA::Capabilities. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 supported profiles. This query calls the appropriate
liberato (no reviews please) 2015/12/04 18:28:58 will update this comment.
42 // platform-specific version. The returned supported profiles vector will 42 // platform-specific version. The returned supported profiles vector will
43 // not contain duplicates. 43 // not contain duplicates.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698