Index: content/common/gpu/gpu_channel.cc |
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc |
index 902a5f23517fa1b18f8d5c1672b4de48a8991ca4..49d086c26a965392cd863ae0317d90c92ecf71b8 100644 |
--- a/content/common/gpu/gpu_channel.cc |
+++ b/content/common/gpu/gpu_channel.cc |
@@ -683,7 +683,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_--; |
@@ -1009,7 +1010,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); |
} |
} |