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

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

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review Created 6 years, 1 month 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 (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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/containers/scoped_ptr_hash_map.h" 12 #include "base/containers/scoped_ptr_hash_map.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop/message_loop_proxy.h" 16 #include "base/message_loop/message_loop_proxy.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/common/content_param_traits.h"
18 #include "content/common/gpu/devtools_gpu_instrumentation.h" 19 #include "content/common/gpu/devtools_gpu_instrumentation.h"
19 #include "content/common/gpu/gpu_memory_manager.h" 20 #include "content/common/gpu/gpu_memory_manager.h"
20 #include "ipc/ipc_listener.h" 21 #include "ipc/ipc_listener.h"
21 #include "ipc/ipc_sender.h" 22 #include "ipc/ipc_sender.h"
22 #include "ui/gfx/gpu_memory_buffer.h" 23 #include "ui/gfx/gpu_memory_buffer.h"
23 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
24 #include "ui/gl/gl_surface.h" 25 #include "ui/gl/gl_surface.h"
25 26
26 namespace base { 27 namespace base {
27 class WaitableEvent; 28 class WaitableEvent;
28 } 29 }
29 30
30 namespace gfx { 31 namespace gfx {
31 class GLShareGroup; 32 class GLShareGroup;
32 struct GpuMemoryBufferHandle; 33 struct GpuMemoryBufferHandle;
33 } 34 }
34 35
35 namespace gpu { 36 namespace gpu {
36 class SyncPointManager; 37 class SyncPointManager;
38 union ValueState;
37 namespace gles2 { 39 namespace gles2 {
38 class MailboxManager; 40 class MailboxManager;
39 class ProgramCache; 41 class ProgramCache;
40 class ShaderTranslatorCache; 42 class ShaderTranslatorCache;
41 } 43 }
42 } 44 }
43 45
44 namespace IPC { 46 namespace IPC {
45 struct ChannelHandle; 47 struct ChannelHandle;
46 class SyncChannel; 48 class SyncChannel;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, 129 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
128 gfx::GpuMemoryBufferId id, 130 gfx::GpuMemoryBufferId id,
129 int client_id); 131 int client_id);
130 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type, 132 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type,
131 gfx::GpuMemoryBufferId id, 133 gfx::GpuMemoryBufferId id,
132 int client_id); 134 int client_id);
133 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type, 135 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
134 gfx::GpuMemoryBufferId id, 136 gfx::GpuMemoryBufferId id,
135 int client_id, 137 int client_id,
136 int32 sync_point); 138 int32 sync_point);
139 void OnUpdateValueState(int client_id,
140 unsigned int target,
141 const gpu::ValueState& state);
137 142
138 void OnLoseAllContexts(); 143 void OnLoseAllContexts();
139 144
140 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 145 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
141 base::WaitableEvent* shutdown_event_; 146 base::WaitableEvent* shutdown_event_;
142 147
143 // Used to send and receive IPC messages from the browser process. 148 // Used to send and receive IPC messages from the browser process.
144 MessageRouter* const router_; 149 MessageRouter* const router_;
145 150
146 // These objects manage channels to individual renderer processes there is 151 // These objects manage channels to individual renderer processes there is
(...skipping 17 matching lines...) Expand all
164 // that any WeakPtrs to Controller are invalidated before its members 169 // that any WeakPtrs to Controller are invalidated before its members
165 // variable's destructors are executed, rendering them invalid. 170 // variable's destructors are executed, rendering them invalid.
166 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 171 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 173 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
169 }; 174 };
170 175
171 } // namespace content 176 } // namespace content
172 177
173 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 178 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698