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

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

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Squash and rebase 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" 22 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
24 #include "ipc/ipc_listener.h" 23 #include "ipc/ipc_listener.h"
25 #include "ipc/ipc_sender.h" 24 #include "ipc/ipc_sender.h"
25 #include "media/gpu/gpu_video_decode_accelerator_helpers.h"
26 #include "media/video/video_decode_accelerator.h" 26 #include "media/video/video_decode_accelerator.h"
27 #include "ui/gfx/geometry/size.h" 27 #include "ui/gfx/geometry/size.h"
28 28
29 namespace gpu { 29 namespace gpu {
30 struct GpuPreferences; 30 struct GpuPreferences;
31 } // namespace gpu 31 } // namespace gpu
32 32
33 namespace content { 33 namespace media {
34 34
35 class GpuVideoDecodeAccelerator 35 class GpuVideoDecodeAccelerator
36 : public IPC::Listener, 36 : public IPC::Listener,
37 public IPC::Sender, 37 public IPC::Sender,
38 public media::VideoDecodeAccelerator::Client, 38 public media::VideoDecodeAccelerator::Client,
39 public gpu::GpuCommandBufferStub::DestructionObserver { 39 public gpu::GpuCommandBufferStub::DestructionObserver {
40 public: 40 public:
41 // Each of the arguments to the constructor must outlive this object. 41 // Each of the arguments to the constructor must outlive this object.
42 // |stub->decoder()| will be made current around any operation that touches 42 // |stub->decoder()| will be made current around any operation that touches
43 // the underlying VDA so that it can make GL calls safely. 43 // 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_; 158 base::Lock debug_uncleared_textures_lock_;
159 159
160 // A map from picture buffer ID to set of TextureRefs that have not been 160 // A map from picture buffer ID to set of TextureRefs that have not been
161 // cleared. 161 // cleared.
162 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 162 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
163 uncleared_textures_; 163 uncleared_textures_;
164 164
165 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
166 }; 166 };
167 167
168 } // namespace content 168 } // namespace media
169 169
170 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 170 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698