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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 1336623004: content/gpu: Simplify gpu channel message handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng's final comments Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index ed4724388ca7403be0717f4bb3f7f2c48c304565..932a0ce6dc0315e7ac0600755c9f57cb12829e88 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -104,11 +104,6 @@ class GpuCommandBufferStub
// Whether this command buffer can currently handle IPC messages.
bool IsScheduled();
- // If the command buffer is pre-empted and cannot process commands.
- bool IsPreempted() const {
- return scheduler_.get() && scheduler_->IsPreempted();
- }
-
// Whether there are commands in the buffer that haven't been processed.
bool HasUnprocessedCommands();
@@ -142,7 +137,7 @@ class GpuCommandBufferStub
// Associates a sync point to this stub. When the stub is destroyed, it will
// retire all sync points that haven't been previously retired.
- void AddSyncPoint(uint32 sync_point);
+ void AddSyncPoint(uint32 sync_point, bool retire);
void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag);
@@ -182,7 +177,6 @@ class GpuCommandBufferStub
IPC::Message* reply_message);
void OnAsyncFlush(int32 put_offset, uint32 flush_count,
const std::vector<ui::LatencyInfo>& latency_info);
- void OnRescheduled();
void OnRegisterTransferBuffer(int32 id,
base::SharedMemoryHandle transfer_buffer,
uint32 size);
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698