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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Identifies the various GpuCommandBufferStubs in the GPU process belonging | 164 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
165 // to the same renderer process. | 165 // to the same renderer process. |
166 int32 route_id() const { return route_id_; } | 166 int32 route_id() const { return route_id_; } |
167 | 167 |
168 gfx::GpuPreference gpu_preference() { return gpu_preference_; } | 168 gfx::GpuPreference gpu_preference() { return gpu_preference_; } |
169 | 169 |
170 // Sends a message to the console. | 170 // Sends a message to the console. |
171 void SendConsoleMessage(int32 id, const std::string& message); | 171 void SendConsoleMessage(int32 id, const std::string& message); |
172 | 172 |
173 gfx::GLSurface* surface() const { return surface_; } | 173 gfx::GLSurface* surface() const { return surface_.get(); } |
174 | 174 |
175 void AddDestructionObserver(DestructionObserver* observer); | 175 void AddDestructionObserver(DestructionObserver* observer); |
176 void RemoveDestructionObserver(DestructionObserver* observer); | 176 void RemoveDestructionObserver(DestructionObserver* observer); |
177 | 177 |
178 // Associates a sync point to this stub. When the stub is destroyed, it will | 178 // Associates a sync point to this stub. When the stub is destroyed, it will |
179 // retire all sync points that haven't been previously retired. | 179 // retire all sync points that haven't been previously retired. |
180 void AddSyncPoint(uint32 sync_point); | 180 void AddSyncPoint(uint32 sync_point); |
181 | 181 |
182 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter); | 182 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter); |
183 | 183 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 GURL active_url_; | 299 GURL active_url_; |
300 size_t active_url_hash_; | 300 size_t active_url_hash_; |
301 | 301 |
302 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 302 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
303 }; | 303 }; |
304 | 304 |
305 } // namespace content | 305 } // namespace content |
306 | 306 |
307 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 307 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |