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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 GpuWatchdog* watchdog_; | 279 GpuWatchdog* watchdog_; |
280 | 280 |
281 base::ObserverList<DestructionObserver> destruction_observers_; | 281 base::ObserverList<DestructionObserver> destruction_observers_; |
282 | 282 |
283 // A queue of sync points associated with this stub. | 283 // A queue of sync points associated with this stub. |
284 std::deque<uint32> sync_points_; | 284 std::deque<uint32> sync_points_; |
285 int sync_point_wait_count_; | 285 int sync_point_wait_count_; |
286 | 286 |
287 bool delayed_work_scheduled_; | 287 bool delayed_work_scheduled_; |
288 uint64 previous_messages_processed_; | 288 uint32_t previous_processed_num_; |
289 base::TimeTicks last_idle_time_; | 289 base::TimeTicks last_idle_time_; |
290 | 290 |
291 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; | 291 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; |
292 | 292 |
293 LatencyInfoCallback latency_info_callback_; | 293 LatencyInfoCallback latency_info_callback_; |
294 | 294 |
295 GURL active_url_; | 295 GURL active_url_; |
296 size_t active_url_hash_; | 296 size_t active_url_hash_; |
297 | 297 |
298 size_t total_gpu_memory_; | 298 size_t total_gpu_memory_; |
299 scoped_ptr<WaitForCommandState> wait_for_token_; | 299 scoped_ptr<WaitForCommandState> wait_for_token_; |
300 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 300 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
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 |