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

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

Issue 319323002: Revert of Merge VideoDecodeAcceleratorImpl with VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "content/common/gpu/gpu_command_buffer_stub.h" 15 #include "content/common/gpu/gpu_command_buffer_stub.h"
16 #include "content/common/gpu/media/video_decode_accelerator_impl.h"
16 #include "gpu/command_buffer/service/texture_manager.h" 17 #include "gpu/command_buffer/service/texture_manager.h"
17 #include "ipc/ipc_listener.h" 18 #include "ipc/ipc_listener.h"
18 #include "ipc/ipc_sender.h" 19 #include "ipc/ipc_sender.h"
19 #include "media/video/video_decode_accelerator.h" 20 #include "media/video/video_decode_accelerator.h"
20 #include "ui/gfx/size.h" 21 #include "ui/gfx/size.h"
21 22
22 namespace base { 23 namespace base {
23 class MessageLoopProxy; 24 class MessageLoopProxy;
24 } 25 }
25 26
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Route ID to communicate with the host. 92 // Route ID to communicate with the host.
92 int32 host_route_id_; 93 int32 host_route_id_;
93 94
94 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is 95 // Unowned pointer to the underlying GpuCommandBufferStub. |this| is
95 // registered as a DestuctionObserver of |stub_| and will self-delete when 96 // registered as a DestuctionObserver of |stub_| and will self-delete when
96 // |stub_| is destroyed. 97 // |stub_| is destroyed.
97 GpuCommandBufferStub* stub_; 98 GpuCommandBufferStub* stub_;
98 99
99 // The underlying VideoDecodeAccelerator. 100 // The underlying VideoDecodeAccelerator.
100 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_; 101 scoped_ptr<VideoDecodeAcceleratorImpl> video_decode_accelerator_;
101 102
102 // Callback for making the relevant context current for GL calls. 103 // Callback for making the relevant context current for GL calls.
103 // Returns false if failed. 104 // Returns false if failed.
104 base::Callback<bool(void)> make_context_current_; 105 base::Callback<bool(void)> make_context_current_;
105 106
106 // The texture dimensions as requested by ProvidePictureBuffers(). 107 // The texture dimensions as requested by ProvidePictureBuffers().
107 gfx::Size texture_dimensions_; 108 gfx::Size texture_dimensions_;
108 109
109 // The texture target as requested by ProvidePictureBuffers(). 110 // The texture target as requested by ProvidePictureBuffers().
110 uint32 texture_target_; 111 uint32 texture_target_;
(...skipping 21 matching lines...) Expand all
132 133
133 // A map from picture buffer ID to TextureRef that have not been cleared. 134 // A map from picture buffer ID to TextureRef that have not been cleared.
134 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_; 135 std::map<int32, scoped_refptr<gpu::gles2::TextureRef> > uncleared_textures_;
135 136
136 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 137 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
137 }; 138 };
138 139
139 } // namespace content 140 } // namespace content
140 141
141 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 142 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/v4l2_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698