Index: content/common/gpu/gpu_channel.cc |
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc |
index ffbbc3c1e6838567360d97fb71855492c88b6d59..dff4db6e5140acf332dcc8ac567fe234260ed91d 100644 |
--- a/content/common/gpu/gpu_channel.cc |
+++ b/content/common/gpu/gpu_channel.cc |
@@ -135,6 +135,19 @@ bool GpuChannel::Send(IPC::Message* message) { |
return channel_->Send(message); |
} |
+void GpuChannel::AppendAllCommandBufferStubs( |
+ std::vector<GpuMemoryManageableCommandBufferStub*>& stubs_with_surface, |
+ std::vector<GpuMemoryManageableCommandBufferStub*>& stubs_without_surface) { |
+ for (StubMap::Iterator<GpuCommandBufferStub> it(&stubs_); |
+ !it.IsAtEnd(); it.Advance()) { |
+ GpuMemoryManageableCommandBufferStub* stub = it.GetCurrentValue(); |
+ if (stub->surface_state().surface_id == 0) |
+ stubs_without_surface.push_back(stub); |
+ else |
+ stubs_with_surface.push_back(stub); |
+ } |
+} |
+ |
bool GpuChannel::IsScheduled() { |
for (StubMap::Iterator<GpuCommandBufferStub> it(&stubs_); |
!it.IsAtEnd(); |