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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2772193006: gpu: Replace GpuMsg_GpuSwitched with mojom api. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | services/ui/gpu/gpu_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index bd874a6701fd8a7ca25c4fb503ad3b9e7683736e..3bed106498ff8cb3c0841b5e29c53b5fd5ab03a6 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -40,7 +40,6 @@
#include "services/ui/gpu/interfaces/gpu_service.mojom.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_switches.h"
-#include "ui/gl/gpu_switching_manager.h"
#include "ui/gl/init/gl_factory.h"
#include "url/gurl.h"
@@ -173,16 +172,6 @@ bool GpuChildThread::Send(IPC::Message* msg) {
return ChildThreadImpl::Send(msg);
}
-bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
- IPC_MESSAGE_HANDLER(GpuMsg_GpuSwitched, OnGpuSwitched)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
-
- return handled;
-}
-
void GpuChildThread::OnAssociatedInterfaceRequest(
const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) {
@@ -243,13 +232,6 @@ void GpuChildThread::CreateDisplayCompositor(
NOTREACHED();
}
-void GpuChildThread::OnGpuSwitched() {
- DVLOG(1) << "GPU: GPU has switched";
- // Notify observers in the GPU process.
- if (!in_browser_process_)
- ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
-}
-
void GpuChildThread::BindServiceFactoryRequest(
service_manager::mojom::ServiceFactoryRequest request) {
DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest";
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | services/ui/gpu/gpu_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698