Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 1568563002: Added a way for sync point clients to issue out of order waits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow WaitOutOfOrder if no client order data Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/gles2/command_buffer_impl.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_impl.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698