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

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

Issue 1348363003: content/gpu: Simplify stub scheduling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu_channel_stream
Patch Set: 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
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 43459999408a13e2fd875e9a61ff19837a7aa1a3..9379482ec60a31d0aabb2783839c2ee33fdf31e9 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -686,7 +686,8 @@ void GpuChannel::OnRemoveSubscription(unsigned int target) {
new GpuHostMsg_RemoveSubscription(client_id_, target));
}
-void GpuChannel::StubSchedulingChanged(bool scheduled) {
+void GpuChannel::OnStubSchedulingChanged(GpuCommandBufferStub* stub,
+ bool scheduled) {
bool a_stub_was_descheduled = num_stubs_descheduled_ > 0;
if (scheduled) {
num_stubs_descheduled_--;
@@ -1011,7 +1012,7 @@ void GpuChannel::OnDestroyCommandBuffer(int32 route_id) {
// stub, we need to make sure to reschedule the GpuChannel here.
if (!stub->IsScheduled()) {
// This stub won't get a chance to reschedule, so update the count now.
- StubSchedulingChanged(true);
+ OnStubSchedulingChanged(stub.get(), true);
}
}

Powered by Google App Engine
This is Rietveld 408576698