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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 1711533002: Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a couple of missings sends in GpuChildThread Created 4 years, 10 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/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index f50db216e35c78f15911fd99e2d8e8ebfe668056..5cd28f96fb9b69826d9507561430dab88eabc00f 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -22,7 +22,7 @@
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_helper.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
-#include "content/common/gpu/gpu_messages.h"
+#include "content/common/gpu/gpu_browser_messages.h"
#include "content/public/browser/browser_thread.h"
#if defined(OS_MACOSX)
@@ -161,15 +161,15 @@ void GpuProcessHostUIShim::StopGpuProcess(const base::Closure& callback) {
}
void GpuProcessHostUIShim::SimulateRemoveAllContext() {
- Send(new GpuMsg_Clean());
+ Send(new GpuBrowserMsg_Clean());
}
void GpuProcessHostUIShim::SimulateCrash() {
- Send(new GpuMsg_Crash());
+ Send(new GpuBrowserMsg_Crash());
}
void GpuProcessHostUIShim::SimulateHang() {
- Send(new GpuMsg_Hang());
+ Send(new GpuBrowserMsg_Hang());
}
GpuProcessHostUIShim::~GpuProcessHostUIShim() {
@@ -184,18 +184,18 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
DCHECK(CalledOnValidThread());
IPC_BEGIN_MESSAGE_MAP(GpuProcessHostUIShim, message)
- IPC_MESSAGE_HANDLER(GpuHostMsg_OnLogMessage,
- OnLogMessage)
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_OnLogMessage, OnLogMessage)
#if defined(OS_MACOSX)
- IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_AcceleratedSurfaceBuffersSwapped,
OnAcceleratedSurfaceBuffersSwapped)
#endif
- IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected,
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_GraphicsInfoCollected,
OnGraphicsInfoCollected)
- IPC_MESSAGE_HANDLER(GpuHostMsg_VideoMemoryUsageStats,
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_VideoMemoryUsageStats,
OnVideoMemoryUsageStatsReceived);
- IPC_MESSAGE_HANDLER(GpuHostMsg_AddSubscription, OnAddSubscription);
- IPC_MESSAGE_HANDLER(GpuHostMsg_RemoveSubscription, OnRemoveSubscription);
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_AddSubscription, OnAddSubscription);
+ IPC_MESSAGE_HANDLER(GpuBrowserHostMsg_RemoveSubscription,
+ OnRemoveSubscription);
IPC_MESSAGE_UNHANDLED_ERROR()
IPC_END_MESSAGE_MAP()
@@ -222,12 +222,12 @@ void GpuProcessHostUIShim::OnGraphicsInfoCollected(
#if defined(OS_MACOSX)
void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
- const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) {
+ const GpuBrowserHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params) {
TRACE_EVENT0("browser",
"GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped");
- if (!ui::LatencyInfo::Verify(params.latency_info,
- "GpuHostMsg_AcceleratedSurfaceBuffersSwapped")) {
-
+ if (!ui::LatencyInfo::Verify(
+ params.latency_info,
+ "GpuBrowserHostMsg_AcceleratedSurfaceBuffersSwapped")) {
TRACE_EVENT0("browser", "ui::LatencyInfo::Verify failed");
return;
}

Powered by Google App Engine
This is Rietveld 408576698