summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 22:09:02 +0000
committersievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 22:09:02 +0000
commit207d6096b1967920f0967f656d8f045ead1c04ae (patch)
tree87d1d7bd65af35d825ac7b136dc79395ea8bc0f7
parenteb23ec503aeba66ca38a4360a14f2fe6d81fdbb8 (diff)
downloadchromium_src-207d6096b1967920f0967f656d8f045ead1c04ae.zip
chromium_src-207d6096b1967920f0967f656d8f045ead1c04ae.tar.gz
chromium_src-207d6096b1967920f0967f656d8f045ead1c04ae.tar.bz2
Remove AURA ifdefs around AcceleratedSurfaceNew/Release.
Use stubs in RWHV instead. This avoids DCHECK failures from unknown messages when using TextureImageTransportSurface. BUG=136923 Review URL: https://chromiumcodereview.appspot.com/10795049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147726 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/browser/gpu/gpu_process_host_ui_shim.cc20
-rw-r--r--content/browser/gpu/gpu_process_host_ui_shim.h6
-rw-r--r--content/port/browser/render_widget_host_view_port.h6
3 files changed, 5 insertions, 27 deletions
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 51ccf82..a33d5ee 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -203,19 +203,13 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
OnAcceleratedSurfaceSuspend)
IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected,
OnGraphicsInfoCollected)
-
-#if defined(TOOLKIT_GTK) || defined(OS_WIN)
- IPC_MESSAGE_HANDLER(GpuHostMsg_ResizeView, OnResizeView)
-#endif
-
-#if defined(USE_AURA)
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceNew,
OnAcceleratedSurfaceNew)
-#endif
-
-#if defined(USE_AURA)
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceRelease,
OnAcceleratedSurfaceRelease)
+
+#if defined(TOOLKIT_GTK) || defined(OS_WIN)
+ IPC_MESSAGE_HANDLER(GpuHostMsg_ResizeView, OnResizeView)
#endif
IPC_MESSAGE_UNHANDLED_ERROR()
@@ -289,8 +283,6 @@ void GpuProcessHostUIShim::OnResizeView(int32 surface_id,
#endif
-#if defined(USE_AURA)
-
void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
const GpuHostMsg_AcceleratedSurfaceNew_Params& params) {
RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
@@ -301,8 +293,6 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
params.width, params.height, params.surface_handle);
}
-#endif
-
static base::TimeDelta GetSwapDelay() {
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
int delay = 0;
@@ -369,8 +359,6 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceSuspend(int32 surface_id) {
view->AcceleratedSurfaceSuspend();
}
-#if defined(USE_AURA)
-
void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease(
const GpuHostMsg_AcceleratedSurfaceRelease_Params& params) {
RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
@@ -379,5 +367,3 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease(
return;
view->AcceleratedSurfaceRelease(params.identifier);
}
-
-#endif
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h
index 189da80..5f3f4c8 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.h
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h
@@ -96,16 +96,10 @@ class GpuProcessHostUIShim
void OnAcceleratedSurfacePostSubBuffer(
const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params);
void OnAcceleratedSurfaceSuspend(int32 surface_id);
-
-#if defined(OS_MACOSX) || defined(USE_AURA)
void OnAcceleratedSurfaceNew(
const GpuHostMsg_AcceleratedSurfaceNew_Params& params);
-#endif
-
-#if defined(USE_AURA)
void OnAcceleratedSurfaceRelease(
const GpuHostMsg_AcceleratedSurfaceRelease_Params& params);
-#endif
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index 12fc721..7955cee 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -216,13 +216,11 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView {
TransportDIB::Handle transport_dib) = 0;
#endif
-#if defined(USE_AURA)
virtual void AcceleratedSurfaceNew(
int32 width_in_pixel,
int32 height_in_pixel,
- uint64 surface_id) = 0;
- virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0;
-#endif
+ uint64 surface_id) {}
+ virtual void AcceleratedSurfaceRelease(uint64 surface_id) {}
#if defined(TOOLKIT_GTK)
virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;