Chromium Code Reviews| Index: content/common/gpu/gpu_channel.cc |
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc |
| index 7ce69260e47c7e0b3a2a0ffc4c847eb23435fd1f..275d7cb0a320e69a9e53b158d01a30703c4ed89d 100644 |
| --- a/content/common/gpu/gpu_channel.cc |
| +++ b/content/common/gpu/gpu_channel.cc |
| @@ -910,6 +910,17 @@ void GpuChannel::HandleOutOfOrderMessage(const IPC::Message& msg) { |
| } |
| } |
| +#if defined(OS_ANDROID) |
| +const GpuCommandBufferStub* GpuChannel::GetOneStub() const { |
| + for (const auto& kv : stubs_) { |
| + const GpuCommandBufferStub* stub = kv.second; |
| + if (stub->decoder()) |
|
no sievers
2015/09/23 19:32:33
should we also check stub->decoder()->WasContextLo
piman
2015/09/23 22:32:32
Done.
|
| + return stub; |
| + } |
| + return nullptr; |
| +} |
| +#endif |
| + |
| void GpuChannel::OnCreateOffscreenCommandBuffer( |
| const gfx::Size& size, |
| const GPUCreateCommandBufferConfig& init_params, |