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

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

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 0c5172cf45cf0a9c5586381dc8f7687b3ee10c03..951dbe4ff115ce3028551bd26e4cbbc94c962be0 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -22,6 +22,7 @@
#include "content/common/gpu/gpu_channel_manager.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/gpu/sync_point_manager.h"
+#include "content/common/power_monitor_message_filter.h"
#include "content/public/common/content_switches.h"
#include "crypto/hmac.h"
#include "gpu/command_buffer/common/mailbox.h"
@@ -487,6 +488,9 @@ bool GpuChannel::Init(base::MessageLoopProxy* io_message_loop,
io_message_loop_ = io_message_loop;
channel_->AddFilter(filter_.get());
+ power_monitor_filter_ = new PowerMonitorMessageFilter();
+ channel_->AddFilter(power_monitor_filter_.get());
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698