| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 // The message_queue_ is used to handle messages on the main thread. | 368 // The message_queue_ is used to handle messages on the main thread. |
| 369 scoped_refptr<GpuChannelMessageQueue> message_queue_; | 369 scoped_refptr<GpuChannelMessageQueue> message_queue_; |
| 370 IPC::Sender* sender_; | 370 IPC::Sender* sender_; |
| 371 base::ProcessId peer_pid_; | 371 base::ProcessId peer_pid_; |
| 372 gpu::SyncPointManager* sync_point_manager_; | 372 gpu::SyncPointManager* sync_point_manager_; |
| 373 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 373 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 374 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; | 374 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; |
| 375 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_; | 375 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_; |
| 376 | 376 |
| 377 // This timer is created and destroyed on the IO thread. | 377 // This timer is created and destroyed on the IO thread. |
| 378 scoped_ptr<base::OneShotTimer<GpuChannelMessageFilter>> timer_; | 378 scoped_ptr<base::OneShotTimer> timer_; |
| 379 | 379 |
| 380 bool a_stub_is_descheduled_; | 380 bool a_stub_is_descheduled_; |
| 381 | 381 |
| 382 // True if this channel can create future sync points. | 382 // True if this channel can create future sync points. |
| 383 bool future_sync_points_; | 383 bool future_sync_points_; |
| 384 }; | 384 }; |
| 385 | 385 |
| 386 struct GpuChannelMessage { | 386 struct GpuChannelMessage { |
| 387 uint32_t order_number; | 387 uint32_t order_number; |
| 388 base::TimeTicks time_received; | 388 base::TimeTicks time_received; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 base::WeakPtr<GpuChannel> gpu_channel_; | 466 base::WeakPtr<GpuChannel> gpu_channel_; |
| 467 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 467 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 468 | 468 |
| 469 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 469 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 } // namespace content | 472 } // namespace content |
| 473 | 473 |
| 474 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 474 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |