| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |