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

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

Issue 12340118: GPU: Only allow the UI channel to preempt if all stubs are scheduled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 years, 10 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_command_buffer_stub.h ('k') | gpu/command_buffer/service/gpu_scheduler.h » ('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.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 550c17433f05f26415d07ccc53718e2c66d05563..7e539969cf33d195c377cdd21083c8369208a50a 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -265,13 +265,6 @@ void GpuCommandBufferStub::OnEcho(const IPC::Message& message) {
Send(new IPC::Message(message));
}
-void GpuCommandBufferStub::OnReschedule() {
- if (!IsScheduled())
- return;
-
- channel_->OnScheduled();
-}
-
bool GpuCommandBufferStub::MakeCurrent() {
if (decoder_->MakeCurrent())
return true;
@@ -485,8 +478,9 @@ void GpuCommandBufferStub::OnInitialize(
base::Unretained(scheduler_.get())));
command_buffer_->SetParseErrorCallback(
base::Bind(&GpuCommandBufferStub::OnParseError, base::Unretained(this)));
- scheduler_->SetScheduledCallback(
- base::Bind(&GpuCommandBufferStub::OnReschedule, base::Unretained(this)));
+ scheduler_->SetSchedulingChangedCallback(
+ base::Bind(&GpuChannel::StubSchedulingChanged,
+ base::Unretained(channel_)));
if (watchdog_) {
scheduler_->SetCommandProcessedCallback(
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | gpu/command_buffer/service/gpu_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698