| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 // The message_queue_ is used to handle messages on the main thread. | 377 // The message_queue_ is used to handle messages on the main thread. |
| 378 scoped_refptr<GpuChannelMessageQueue> message_queue_; | 378 scoped_refptr<GpuChannelMessageQueue> message_queue_; |
| 379 IPC::Sender* sender_; | 379 IPC::Sender* sender_; |
| 380 base::ProcessId peer_pid_; | 380 base::ProcessId peer_pid_; |
| 381 gpu::SyncPointManager* sync_point_manager_; | 381 gpu::SyncPointManager* sync_point_manager_; |
| 382 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 382 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 383 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; | 383 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; |
| 384 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_; | 384 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_; |
| 385 | 385 |
| 386 // This timer is created and destroyed on the IO thread. | 386 // This timer is created and destroyed on the IO thread. |
| 387 scoped_ptr<base::OneShotTimer<GpuChannelMessageFilter>> timer_; | 387 scoped_ptr<base::OneShotTimer> timer_; |
| 388 | 388 |
| 389 bool a_stub_is_descheduled_; | 389 bool a_stub_is_descheduled_; |
| 390 | 390 |
| 391 // True if this channel can create future sync points. | 391 // True if this channel can create future sync points. |
| 392 bool future_sync_points_; | 392 bool future_sync_points_; |
| 393 | 393 |
| 394 // This number is only ever incremented/read on the IO thread. | 394 // This number is only ever incremented/read on the IO thread. |
| 395 static uint32_t global_order_counter_; | 395 static uint32_t global_order_counter_; |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace content | 398 } // namespace content |
| 399 | 399 |
| 400 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 400 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |