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_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // Identifies the various GpuCommandBufferStubs in the GPU process belonging | 159 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
160 // to the same renderer process. | 160 // to the same renderer process. |
161 int32 route_id() const { return route_id_; } | 161 int32 route_id() const { return route_id_; } |
162 | 162 |
163 gfx::GpuPreference gpu_preference() { return gpu_preference_; } | 163 gfx::GpuPreference gpu_preference() { return gpu_preference_; } |
164 | 164 |
165 // Sends a message to the console. | 165 // Sends a message to the console. |
166 void SendConsoleMessage(int32 id, const std::string& message); | 166 void SendConsoleMessage(int32 id, const std::string& message); |
167 | 167 |
| 168 // Sends a message with the given time. |
| 169 void SendUpdateVSyncTime(int64 time); |
| 170 |
168 gfx::GLSurface* surface() const { return surface_; } | 171 gfx::GLSurface* surface() const { return surface_; } |
169 | 172 |
170 void AddDestructionObserver(DestructionObserver* observer); | 173 void AddDestructionObserver(DestructionObserver* observer); |
171 void RemoveDestructionObserver(DestructionObserver* observer); | 174 void RemoveDestructionObserver(DestructionObserver* observer); |
172 | 175 |
173 // Associates a sync point to this stub. When the stub is destroyed, it will | 176 // Associates a sync point to this stub. When the stub is destroyed, it will |
174 // retire all sync points that haven't been previously retired. | 177 // retire all sync points that haven't been previously retired. |
175 void AddSyncPoint(uint32 sync_point); | 178 void AddSyncPoint(uint32 sync_point); |
176 | 179 |
177 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter); | 180 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 293 |
291 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; | 294 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; |
292 | 295 |
293 GURL active_url_; | 296 GURL active_url_; |
294 size_t active_url_hash_; | 297 size_t active_url_hash_; |
295 | 298 |
296 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 299 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
297 }; | 300 }; |
298 | 301 |
299 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 302 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |