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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Make ContextProvider NON_EXPORTED_BASE of InProcessContextProvider Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GPU_IN_PROCESS_THREAD_SERVICE_H_ 5 #ifndef GPU_IPC_GPU_IN_PROCESS_THREAD_SERVICE_H_
6 #define GPU_IPC_GPU_IN_PROCESS_THREAD_SERVICE_H_ 6 #define GPU_IPC_GPU_IN_PROCESS_THREAD_SERVICE_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "gpu/command_buffer/service/mailbox_manager.h" 9 #include "gpu/command_buffer/service/mailbox_manager.h"
10 #include "gpu/gpu_export.h"
9 #include "gpu/ipc/in_process_command_buffer.h" 11 #include "gpu/ipc/in_process_command_buffer.h"
10 #include "ui/gl/gl_share_group.h" 12 #include "ui/gl/gl_share_group.h"
11 13
12 namespace gpu { 14 namespace gpu {
13 15
14 // Default Service class when a null service is used. 16 // Default Service class when a null service is used.
sadrul 2016/11/21 17:23:49 What is a 'null service'?
Fady Samuel 2016/11/21 20:40:41 Improved comment.
15 class GpuInProcessThreadService 17 class GPU_EXPORT GpuInProcessThreadService
16 : public gpu::InProcessCommandBuffer::Service, 18 : public NON_EXPORTED_BASE(gpu::InProcessCommandBuffer::Service),
17 public base::RefCountedThreadSafe<GpuInProcessThreadService> { 19 public base::RefCountedThreadSafe<GpuInProcessThreadService> {
18 public: 20 public:
19 GpuInProcessThreadService( 21 GpuInProcessThreadService(
20 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
21 gpu::SyncPointManager* sync_point_manager, 23 gpu::SyncPointManager* sync_point_manager,
22 gpu::gles2::MailboxManager* mailbox_manager, 24 gpu::gles2::MailboxManager* mailbox_manager,
23 scoped_refptr<gl::GLShareGroup> share_group); 25 scoped_refptr<gl::GLShareGroup> share_group);
24 26
25 // gpu::InProcessCommandBuffer::Service implementation. 27 // gpu::InProcessCommandBuffer::Service implementation.
26 void ScheduleTask(const base::Closure& task) override; 28 void ScheduleTask(const base::Closure& task) override;
(...skipping 19 matching lines...) Expand all
46 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 48 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
47 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 49 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
48 framebuffer_completeness_cache_; 50 framebuffer_completeness_cache_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThreadService); 52 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThreadService);
51 }; 53 };
52 54
53 } // namespace gpu 55 } // namespace gpu
54 56
55 #endif // GPU_IPC_GPU_IN_PROCESS_THREAD_SERVICE_H_ 57 #endif // GPU_IPC_GPU_IN_PROCESS_THREAD_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698