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

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

Issue 1568563002: Added a way for sync point clients to issue out of order waits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow WaitOutOfOrder if no client order data Created 4 years, 11 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/gpu/gpu_channel.cc ('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 19 matching lines...) Expand all
30 namespace base { 30 namespace base {
31 class WaitableEvent; 31 class WaitableEvent;
32 } 32 }
33 33
34 namespace gfx { 34 namespace gfx {
35 class GLShareGroup; 35 class GLShareGroup;
36 } 36 }
37 37
38 namespace gpu { 38 namespace gpu {
39 class PreemptionFlag; 39 class PreemptionFlag;
40 class SyncPointClientWaiter; 40 class SyncPointClient;
41 class SyncPointManager; 41 class SyncPointManager;
42 struct SyncToken; 42 struct SyncToken;
43 union ValueState; 43 union ValueState;
44 namespace gles2 { 44 namespace gles2 {
45 class FramebufferCompletenessCache; 45 class FramebufferCompletenessCache;
46 class MailboxManager; 46 class MailboxManager;
47 class ProgramCache; 47 class ProgramCache;
48 class ShaderTranslatorCache; 48 class ShaderTranslatorCache;
49 } 49 }
50 } 50 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 GpuWatchdog* watchdog_; 182 GpuWatchdog* watchdog_;
183 183
184 base::WaitableEvent* shutdown_event_; 184 base::WaitableEvent* shutdown_event_;
185 185
186 scoped_refptr<gfx::GLShareGroup> share_group_; 186 scoped_refptr<gfx::GLShareGroup> share_group_;
187 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 187 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
188 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 188 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
189 GpuMemoryManager gpu_memory_manager_; 189 GpuMemoryManager gpu_memory_manager_;
190 // SyncPointManager guaranteed to outlive running MessageLoop. 190 // SyncPointManager guaranteed to outlive running MessageLoop.
191 gpu::SyncPointManager* sync_point_manager_; 191 gpu::SyncPointManager* sync_point_manager_;
192 scoped_ptr<gpu::SyncPointClientWaiter> sync_point_client_waiter_; 192 scoped_ptr<gpu::SyncPointClient> sync_point_client_waiter_;
193 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; 193 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
194 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 194 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
195 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 195 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
196 framebuffer_completeness_cache_; 196 framebuffer_completeness_cache_;
197 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; 197 scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
198 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 198 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
199 #if defined(OS_ANDROID) 199 #if defined(OS_ANDROID)
200 // Last time we know the GPU was powered on. Global for tracking across all 200 // Last time we know the GPU was powered on. Global for tracking across all
201 // transport surfaces. 201 // transport surfaces.
202 base::TimeTicks last_gpu_access_time_; 202 base::TimeTicks last_gpu_access_time_;
203 base::TimeTicks begin_wake_up_time_; 203 base::TimeTicks begin_wake_up_time_;
204 #endif 204 #endif
205 205
206 // Member variables should appear before the WeakPtrFactory, to ensure 206 // Member variables should appear before the WeakPtrFactory, to ensure
207 // that any WeakPtrs to Controller are invalidated before its members 207 // that any WeakPtrs to Controller are invalidated before its members
208 // variable's destructors are executed, rendering them invalid. 208 // variable's destructors are executed, rendering them invalid.
209 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 209 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
210 210
211 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 211 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
212 }; 212 };
213 213
214 } // namespace content 214 } // namespace content
215 215
216 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 216 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698