Index: content/common/gpu/gpu_channel.cc |
=================================================================== |
--- content/common/gpu/gpu_channel.cc (revision 83213) |
+++ content/common/gpu/gpu_channel.cc (working copy) |
@@ -64,12 +64,15 @@ |
i != latched_routes_.end(); ++i) { |
GpuCommandBufferStub* stub = stubs_.Lookup(*i); |
if (stub) |
- stub->scheduler()->ScheduleProcessCommands(); |
+ stub->scheduler()->SetScheduled(true); |
} |
latched_routes_.clear(); |
} else { |
// Add route_id context to a set to be woken upon any set latch. |
latched_routes_.insert(route_id); |
+ GpuCommandBufferStub* stub = stubs_.Lookup(route_id); |
+ if (stub) |
+ stub->scheduler()->SetScheduled(false); |
} |
#endif |
} |
@@ -142,6 +145,14 @@ |
#endif // ENABLE_GPU |
} |
+void GpuChannel::ViewResized(int32 command_buffer_route_id) { |
+ GpuCommandBufferStub* stub = stubs_.Lookup(command_buffer_route_id); |
+ if (stub == NULL) |
+ return; |
+ |
+ stub->ViewResized(); |
+} |
+ |
#if defined(OS_MACOSX) |
void GpuChannel::AcceleratedSurfaceBuffersSwapped( |
int32 route_id, uint64 swap_buffers_count) { |