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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 1634443002: Revert "Implement GpuArcVideoService for arc video accelerator" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 namespace IPC { 52 namespace IPC {
53 struct ChannelHandle; 53 struct ChannelHandle;
54 class SyncChannel; 54 class SyncChannel;
55 } 55 }
56 56
57 struct GPUCreateCommandBufferConfig; 57 struct GPUCreateCommandBufferConfig;
58 struct GpuMsg_EstablishChannel_Params; 58 struct GpuMsg_EstablishChannel_Params;
59 59
60 namespace content { 60 namespace content {
61 #if defined(OS_CHROMEOS)
62 class GpuArcVideoService;
63 #endif
64 class GpuChannel; 61 class GpuChannel;
65 class GpuMemoryBufferFactory; 62 class GpuMemoryBufferFactory;
66 class GpuWatchdog; 63 class GpuWatchdog;
67 64
68 // A GpuChannelManager is a thread responsible for issuing rendering commands 65 // A GpuChannelManager is a thread responsible for issuing rendering commands
69 // managing the lifetimes of GPU channels and forwarding IPC requests from the 66 // managing the lifetimes of GPU channels and forwarding IPC requests from the
70 // browser process to them based on the corresponding renderer ID. 67 // browser process to them based on the corresponding renderer ID.
71 class CONTENT_EXPORT GpuChannelManager : public IPC::Listener, 68 class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
72 public IPC::Sender { 69 public IPC::Sender {
73 public: 70 public:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 const gfx::GLSurfaceHandle& window, 156 const gfx::GLSurfaceHandle& window,
160 int32_t client_id, 157 int32_t client_id,
161 const GPUCreateCommandBufferConfig& init_params, 158 const GPUCreateCommandBufferConfig& init_params,
162 int32_t route_id); 159 int32_t route_id);
163 void OnLoadedShader(const std::string& shader); 160 void OnLoadedShader(const std::string& shader);
164 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id); 161 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id);
165 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id); 162 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id);
166 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 163 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
167 int client_id, 164 int client_id,
168 const gpu::SyncToken& sync_token); 165 const gpu::SyncToken& sync_token);
169 #if defined(OS_CHROMEOS)
170 void OnCreateArcVideoAcceleratorChannel();
171 void ArcVideoAcceleratorChannelCreated(const IPC::ChannelHandle& handle);
172 void OnShutdownArcVideoService();
173 #endif
174 166
175 void OnUpdateValueState(int client_id, 167 void OnUpdateValueState(int client_id,
176 unsigned int target, 168 unsigned int target,
177 const gpu::ValueState& state); 169 const gpu::ValueState& state);
178 #if defined(OS_ANDROID) 170 #if defined(OS_ANDROID)
179 void OnWakeUpGpu(); 171 void OnWakeUpGpu();
180 void ScheduleWakeUpGpu(); 172 void ScheduleWakeUpGpu();
181 void DoWakeUpGpu(); 173 void DoWakeUpGpu();
182 #endif 174 #endif
183 void OnLoseAllContexts(); 175 void OnLoseAllContexts();
(...skipping 11 matching lines...) Expand all
195 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 187 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
196 GpuMemoryManager gpu_memory_manager_; 188 GpuMemoryManager gpu_memory_manager_;
197 // SyncPointManager guaranteed to outlive running MessageLoop. 189 // SyncPointManager guaranteed to outlive running MessageLoop.
198 gpu::SyncPointManager* sync_point_manager_; 190 gpu::SyncPointManager* sync_point_manager_;
199 scoped_ptr<gpu::SyncPointClient> sync_point_client_waiter_; 191 scoped_ptr<gpu::SyncPointClient> sync_point_client_waiter_;
200 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; 192 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
201 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 193 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
202 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 194 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
203 framebuffer_completeness_cache_; 195 framebuffer_completeness_cache_;
204 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; 196 scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
205 #if defined(OS_CHROMEOS)
206 scoped_ptr<GpuArcVideoService> gpu_arc_video_service_;
207 #endif
208 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 197 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
209 #if defined(OS_ANDROID) 198 #if defined(OS_ANDROID)
210 // Last time we know the GPU was powered on. Global for tracking across all 199 // Last time we know the GPU was powered on. Global for tracking across all
211 // transport surfaces. 200 // transport surfaces.
212 base::TimeTicks last_gpu_access_time_; 201 base::TimeTicks last_gpu_access_time_;
213 base::TimeTicks begin_wake_up_time_; 202 base::TimeTicks begin_wake_up_time_;
214 #endif 203 #endif
215 204
216 // Member variables should appear before the WeakPtrFactory, to ensure 205 // Member variables should appear before the WeakPtrFactory, to ensure
217 // that any WeakPtrs to Controller are invalidated before its members 206 // that any WeakPtrs to Controller are invalidated before its members
218 // variable's destructors are executed, rendering them invalid. 207 // variable's destructors are executed, rendering them invalid.
219 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 208 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
220 209
221 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 210 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
222 }; 211 };
223 212
224 } // namespace content 213 } // namespace content
225 214
226 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 215 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698