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

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

Issue 1859403002: Avoid GpuPreferences exposed in content public gpu interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 29 matching lines...) Expand all
40 // |stub->decoder()| will be made current around any operation that touches 40 // |stub->decoder()| will be made current around any operation that touches
41 // the underlying VDA so that it can make GL calls safely. 41 // the underlying VDA so that it can make GL calls safely.
42 GpuVideoDecodeAccelerator( 42 GpuVideoDecodeAccelerator(
43 int32_t host_route_id, 43 int32_t host_route_id,
44 GpuCommandBufferStub* stub, 44 GpuCommandBufferStub* stub,
45 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); 45 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
46 46
47 // Static query for the capabilities, which includes the supported profiles. 47 // Static query for the capabilities, which includes the supported profiles.
48 // This query calls the appropriate platform-specific version. The returned 48 // This query calls the appropriate platform-specific version. The returned
49 // capabilities will not contain duplicate supported profile entries. 49 // capabilities will not contain duplicate supported profile entries.
50 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities( 50 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities();
51 const gpu::GpuPreferences& gpu_preferences);
52 51
53 // IPC::Listener implementation. 52 // IPC::Listener implementation.
54 bool OnMessageReceived(const IPC::Message& message) override; 53 bool OnMessageReceived(const IPC::Message& message) override;
55 54
56 // media::VideoDecodeAccelerator::Client implementation. 55 // media::VideoDecodeAccelerator::Client implementation.
57 void NotifyCdmAttached(bool success) override; 56 void NotifyCdmAttached(bool success) override;
58 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 57 void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
59 uint32_t textures_per_buffer, 58 uint32_t textures_per_buffer,
60 const gfx::Size& dimensions, 59 const gfx::Size& dimensions,
61 uint32_t texture_target) override; 60 uint32_t texture_target) override;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 156
158 // 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.
159 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; 158 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_;
160 159
161 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 160 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
162 }; 161 };
163 162
164 } // namespace content 163 } // namespace content
165 164
166 #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