Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove texture_dirty_ state from AsyncPixelTransferDelegateIdle Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698