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); |
} |
} |