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

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

Issue 10696221: Aura: Less image transport IPCs and less code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 5 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 | « no previous file | content/browser/renderer_host/image_transport_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b9347ab495bfc89c0d8bf941ff842e527a5896ab..51ccf821e003da0a1405336697df3774ef7ff770 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -293,26 +293,12 @@ void GpuProcessHostUIShim::OnResizeView(int32 surface_id,
void GpuProcessHostUIShim::OnAcceleratedSurfaceNew(
const GpuHostMsg_AcceleratedSurfaceNew_Params& params) {
- ScopedSendOnIOThread delayed_send(
- host_id_,
- new AcceleratedSurfaceMsg_NewACK(
- params.route_id,
- params.surface_handle,
- TransportDIB::DefaultHandleValue()));
-
RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
params.surface_id);
if (!view)
return;
-
- uint64 surface_handle = params.surface_handle;
- TransportDIB::Handle shm_handle = TransportDIB::DefaultHandleValue();
-
view->AcceleratedSurfaceNew(
- params.width, params.height, &surface_handle, &shm_handle);
- delayed_send.Cancel();
- Send(new AcceleratedSurfaceMsg_NewACK(
- params.route_id, surface_handle, shm_handle));
+ params.width, params.height, params.surface_handle);
}
#endif
« no previous file with comments | « no previous file | content/browser/renderer_host/image_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698