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

Side by Side Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.h

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/shared_memory.h" 17 #include "base/memory/shared_memory.h"
18 #include "base/synchronization/waitable_event.h" 18 #include "base/synchronization/waitable_event.h"
19 #include "content/common/gpu/media/gpu_video_decode_accelerator_helpers.h"
20 #include "gpu/command_buffer/service/texture_manager.h" 19 #include "gpu/command_buffer/service/texture_manager.h"
21 #include "gpu/config/gpu_info.h" 20 #include "gpu/config/gpu_info.h"
22 #include "gpu/ipc/service/gpu_command_buffer_stub.h" 21 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
23 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
24 #include "ipc/ipc_listener.h" 22 #include "ipc/ipc_listener.h"
25 #include "ipc/ipc_sender.h" 23 #include "ipc/ipc_sender.h"
24 #include "media/gpu/gpu_video_decode_accelerator_helpers.h"
26 #include "media/video/video_decode_accelerator.h" 25 #include "media/video/video_decode_accelerator.h"
27 #include "ui/gfx/geometry/size.h" 26 #include "ui/gfx/geometry/size.h"
28 27
29 namespace gpu { 28 namespace gpu {
30 struct GpuPreferences; 29 struct GpuPreferences;
31 } // namespace gpu 30 } // namespace gpu
32 31
33 namespace content { 32 namespace media {
34 33
35 class GpuVideoDecodeAccelerator 34 class GpuVideoDecodeAccelerator
36 : public IPC::Listener, 35 : public IPC::Listener,
37 public IPC::Sender, 36 public IPC::Sender,
38 public media::VideoDecodeAccelerator::Client, 37 public media::VideoDecodeAccelerator::Client,
39 public gpu::GpuCommandBufferStub::DestructionObserver { 38 public gpu::GpuCommandBufferStub::DestructionObserver {
40 public: 39 public:
41 // Each of the arguments to the constructor must outlive this object. 40 // Each of the arguments to the constructor must outlive this object.
42 // |stub->decoder()| will be made current around any operation that touches 41 // |stub->decoder()| will be made current around any operation that touches
43 // the underlying VDA so that it can make GL calls safely. 42 // the underlying VDA so that it can make GL calls safely.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 base::Lock debug_uncleared_textures_lock_; 157 base::Lock debug_uncleared_textures_lock_;
159 158
160 // A map from picture buffer ID to set of TextureRefs that have not been 159 // A map from picture buffer ID to set of TextureRefs that have not been
161 // cleared. 160 // cleared.
162 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 161 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
163 uncleared_textures_; 162 uncleared_textures_;
164 163
165 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
166 }; 165 };
167 166
168 } // namespace content 167 } // namespace media
169 168
170 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 169 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc ('k') | media/gpu/ipc/service/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698