| Index: content/common/gpu/gpu_channel_manager.cc
|
| diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
|
| index 808c8d9e3472934d5e5c34fe77b47bbf2fd8534a..fc48010ca1c36b819bd8211871e1e7f1e3f0649f 100644
|
| --- a/content/common/gpu/gpu_channel_manager.cc
|
| +++ b/content/common/gpu/gpu_channel_manager.cc
|
| @@ -259,6 +259,25 @@ void GpuChannelManager::OnLoadedShader(std::string program_proto) {
|
| program_cache()->LoadProgram(program_proto);
|
| }
|
|
|
| +bool GpuChannelManager::HandleMessagesScheduled() {
|
| + for (GpuChannelMap::iterator iter = gpu_channels_.begin();
|
| + iter != gpu_channels_.end(); ++iter) {
|
| + if (iter->second->handle_messages_scheduled())
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| +uint64 GpuChannelManager::MessagesProcessed() {
|
| + uint64 messages_processed = 0;
|
| +
|
| + for (GpuChannelMap::iterator iter = gpu_channels_.begin();
|
| + iter != gpu_channels_.end(); ++iter) {
|
| + messages_processed += iter->second->messages_processed();
|
| + }
|
| + return messages_processed;
|
| +}
|
| +
|
| void GpuChannelManager::LoseAllContexts() {
|
| MessageLoop::current()->PostTask(
|
| FROM_HERE,
|
|
|