| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 // Returns the global order number for the last unprocessed IPC message. | 426 // Returns the global order number for the last unprocessed IPC message. |
| 427 uint32_t GetProcessedOrderNum() const; | 427 uint32_t GetProcessedOrderNum() const; |
| 428 | 428 |
| 429 bool HasQueuedMessages() const; | 429 bool HasQueuedMessages() const; |
| 430 | 430 |
| 431 base::TimeTicks GetNextMessageTimeTick() const; | 431 base::TimeTicks GetNextMessageTimeTick() const; |
| 432 | 432 |
| 433 GpuChannelMessage* GetNextMessage() const; | 433 GpuChannelMessage* GetNextMessage() const; |
| 434 | 434 |
| 435 // Should be called before a message begins to be processed. |
| 435 void BeginMessageProcessing(const GpuChannelMessage* msg); | 436 void BeginMessageProcessing(const GpuChannelMessage* msg); |
| 436 | 437 |
| 438 // Should be called if a message began processing but did not finish. |
| 439 void PauseMessageProcessing(const GpuChannelMessage* msg); |
| 440 |
| 437 // Should be called after a message returned by GetNextMessage is processed. | 441 // Should be called after a message returned by GetNextMessage is processed. |
| 438 // Returns true if there are more messages on the queue. | 442 // Returns true if there are more messages on the queue. |
| 439 bool MessageProcessed(); | 443 bool MessageProcessed(); |
| 440 | 444 |
| 441 void PushBackMessage(const IPC::Message& message); | 445 void PushBackMessage(const IPC::Message& message); |
| 442 | 446 |
| 443 bool GenerateSyncPointMessage(const IPC::Message& message, | 447 bool GenerateSyncPointMessage(const IPC::Message& message, |
| 444 bool retire_sync_point, | 448 bool retire_sync_point, |
| 445 uint32_t* sync_point_number); | 449 uint32_t* sync_point_number); |
| 446 | 450 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 472 base::WeakPtr<GpuChannel> gpu_channel_; | 476 base::WeakPtr<GpuChannel> gpu_channel_; |
| 473 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 477 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 474 gpu::SyncPointManager* sync_point_manager_; | 478 gpu::SyncPointManager* sync_point_manager_; |
| 475 | 479 |
| 476 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 480 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
| 477 }; | 481 }; |
| 478 | 482 |
| 479 } // namespace content | 483 } // namespace content |
| 480 | 484 |
| 481 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 485 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |