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

Side by Side Diff: gpu/ipc/in_process_command_buffer.h

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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 | « gpu/ipc/common/gpu_param_traits_macros.h ('k') | gpu/ipc/in_process_command_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void SetUpdateVSyncParametersCallback( 158 void SetUpdateVSyncParametersCallback(
159 const UpdateVSyncParametersCallback& callback); 159 const UpdateVSyncParametersCallback& callback);
160 160
161 void DidSwapBuffersCompleteOnOriginThread(SwapBuffersCompleteParams params); 161 void DidSwapBuffersCompleteOnOriginThread(SwapBuffersCompleteParams params);
162 void UpdateVSyncParametersOnOriginThread(base::TimeTicks timebase, 162 void UpdateVSyncParametersOnOriginThread(base::TimeTicks timebase,
163 base::TimeDelta interval); 163 base::TimeDelta interval);
164 164
165 // The serializer interface to the GPU service (i.e. thread). 165 // The serializer interface to the GPU service (i.e. thread).
166 class Service { 166 class Service {
167 public: 167 public:
168 Service();
169 Service(const gpu::GpuPreferences& gpu_preferences); 168 Service(const gpu::GpuPreferences& gpu_preferences);
170 Service(gpu::gles2::MailboxManager* mailbox_manager, 169 Service(gpu::gles2::MailboxManager* mailbox_manager,
171 scoped_refptr<gl::GLShareGroup> share_group); 170 scoped_refptr<gl::GLShareGroup> share_group);
172 171
173 virtual ~Service(); 172 virtual ~Service();
174 173
175 virtual void AddRef() const = 0; 174 virtual void AddRef() const = 0;
176 virtual void Release() const = 0; 175 virtual void Release() const = 0;
177 176
178 // Queues a task to run as soon as possible. 177 // Queues a task to run as soon as possible.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 332 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
334 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; 333 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_;
335 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 334 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
336 335
337 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 336 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
338 }; 337 };
339 338
340 } // namespace gpu 339 } // namespace gpu
341 340
342 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 341 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_param_traits_macros.h ('k') | gpu/ipc/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698