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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void CacheShader(const std::string& key, const std::string& shader); | 139 void CacheShader(const std::string& key, const std::string& shader); |
140 | 140 |
141 void AddFilter(IPC::MessageFilter* filter); | 141 void AddFilter(IPC::MessageFilter* filter); |
142 void RemoveFilter(IPC::MessageFilter* filter); | 142 void RemoveFilter(IPC::MessageFilter* filter); |
143 | 143 |
144 uint64 GetMemoryUsage(); | 144 uint64 GetMemoryUsage(); |
145 | 145 |
146 bool allow_future_sync_points() const { return allow_future_sync_points_; } | 146 bool allow_future_sync_points() const { return allow_future_sync_points_; } |
147 | 147 |
| 148 void HandleUpdateValueState(unsigned int target, |
| 149 const gpu::ValueState& state); |
| 150 |
148 private: | 151 private: |
149 friend class GpuChannelMessageFilter; | 152 friend class GpuChannelMessageFilter; |
150 | 153 |
151 void OnDestroy(); | 154 void OnDestroy(); |
152 | 155 |
153 bool OnControlMessageReceived(const IPC::Message& msg); | 156 bool OnControlMessageReceived(const IPC::Message& msg); |
154 | 157 |
155 void HandleMessage(); | 158 void HandleMessage(); |
156 | 159 |
157 // Message handlers. | 160 // 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 | 226 // that any WeakPtrs to Controller are invalidated before its members |
224 // variable's destructors are executed, rendering them invalid. | 227 // variable's destructors are executed, rendering them invalid. |
225 base::WeakPtrFactory<GpuChannel> weak_factory_; | 228 base::WeakPtrFactory<GpuChannel> weak_factory_; |
226 | 229 |
227 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 230 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
228 }; | 231 }; |
229 | 232 |
230 } // namespace content | 233 } // namespace content |
231 | 234 |
232 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 235 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |