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

Side by Side Diff: content/browser/renderer_host/render_widget_host.cc

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host.h" 5 #include "content/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 Send(new ViewMsg_LockMouse_ACK(routing_id_, false)); 1472 Send(new ViewMsg_LockMouse_ACK(routing_id_, false));
1473 return false; 1473 return false;
1474 } else { 1474 } else {
1475 Send(new ViewMsg_LockMouse_ACK(routing_id_, true)); 1475 Send(new ViewMsg_LockMouse_ACK(routing_id_, true));
1476 return true; 1476 return true;
1477 } 1477 }
1478 } 1478 }
1479 } 1479 }
1480 1480
1481 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 1481 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
1482 // static
1482 void RenderWidgetHost::AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id) { 1483 void RenderWidgetHost::AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id) {
1483 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id); 1484 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
1484 if (ui_shim) 1485 if (ui_shim)
1485 ui_shim->Send(new AcceleratedSurfaceMsg_BuffersSwappedACK(route_id)); 1486 ui_shim->Send(new AcceleratedSurfaceMsg_BuffersSwappedACK(route_id));
1486 } 1487 }
1488
1489 // static
1490 void RenderWidgetHost::AcknowledgePostSubBuffer(int32 route_id,
1491 int gpu_host_id) {
1492 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
1493 if (ui_shim)
1494 ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id));
1495 }
1487 #endif 1496 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.h ('k') | content/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698