OLD | NEW |
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_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 struct GPUCreateCommandBufferConfig; | 28 struct GPUCreateCommandBufferConfig; |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class MessageLoopProxy; | 31 class MessageLoopProxy; |
32 class WaitableEvent; | 32 class WaitableEvent; |
33 } | 33 } |
34 | 34 |
35 namespace gpu { | 35 namespace gpu { |
36 class PreemptionFlag; | 36 class PreemptionFlag; |
| 37 union ValueState; |
37 } | 38 } |
38 | 39 |
39 namespace IPC { | 40 namespace IPC { |
40 class MessageFilter; | 41 class MessageFilter; |
41 } | 42 } |
42 | 43 |
43 namespace content { | 44 namespace content { |
44 class DevToolsGpuAgent; | 45 class DevToolsGpuAgent; |
45 class GpuChannelManager; | 46 class GpuChannelManager; |
46 class GpuChannelMessageFilter; | 47 class GpuChannelMessageFilter; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 139 |
139 void CacheShader(const std::string& key, const std::string& shader); | 140 void CacheShader(const std::string& key, const std::string& shader); |
140 | 141 |
141 void AddFilter(IPC::MessageFilter* filter); | 142 void AddFilter(IPC::MessageFilter* filter); |
142 void RemoveFilter(IPC::MessageFilter* filter); | 143 void RemoveFilter(IPC::MessageFilter* filter); |
143 | 144 |
144 uint64 GetMemoryUsage(); | 145 uint64 GetMemoryUsage(); |
145 | 146 |
146 bool allow_future_sync_points() const { return allow_future_sync_points_; } | 147 bool allow_future_sync_points() const { return allow_future_sync_points_; } |
147 | 148 |
| 149 void HandleUpdateValueState(unsigned int target, |
| 150 const gpu::ValueState& state); |
| 151 |
148 private: | 152 private: |
149 friend class GpuChannelMessageFilter; | 153 friend class GpuChannelMessageFilter; |
150 | 154 |
151 void OnDestroy(); | 155 void OnDestroy(); |
152 | 156 |
153 bool OnControlMessageReceived(const IPC::Message& msg); | 157 bool OnControlMessageReceived(const IPC::Message& msg); |
154 | 158 |
155 void HandleMessage(); | 159 void HandleMessage(); |
156 | 160 |
157 // Message handlers. | 161 // Message handlers. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // that any WeakPtrs to Controller are invalidated before its members | 227 // that any WeakPtrs to Controller are invalidated before its members |
224 // variable's destructors are executed, rendering them invalid. | 228 // variable's destructors are executed, rendering them invalid. |
225 base::WeakPtrFactory<GpuChannel> weak_factory_; | 229 base::WeakPtrFactory<GpuChannel> weak_factory_; |
226 | 230 |
227 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 231 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
228 }; | 232 }; |
229 | 233 |
230 } // namespace content | 234 } // namespace content |
231 | 235 |
232 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 236 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |