| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gpu/gpu_process_host.h" | 5 #include "content/browser/gpu/gpu_process_host.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, | 115 base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, |
| 116 host_id, | 116 host_id, |
| 117 route_id, | 117 route_id, |
| 118 alive)); | 118 alive)); |
| 119 return; | 119 return; |
| 120 } | 120 } |
| 121 | 121 |
| 122 GpuProcessHost* host = GpuProcessHost::FromID(host_id); | 122 GpuProcessHost* host = GpuProcessHost::FromID(host_id); |
| 123 if (host) { | 123 if (host) { |
| 124 if (alive) | 124 if (alive) |
| 125 host->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id, 0)); | 125 host->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id, false, 0)); |
| 126 else | 126 else |
| 127 host->ForceShutdown(); | 127 host->ForceShutdown(); |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 | 130 |
| 131 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
| 132 // This sends a ViewMsg_SwapBuffers_ACK directly to the renderer process | 132 // This sends a ViewMsg_SwapBuffers_ACK directly to the renderer process |
| 133 // (RenderWidget). This path is currently not used with the threaded compositor. | 133 // (RenderWidget). This path is currently not used with the threaded compositor. |
| 134 void AcceleratedSurfaceBuffersSwappedCompletedForRenderer( | 134 void AcceleratedSurfaceBuffersSwappedCompletedForRenderer( |
| 135 int surface_id, | 135 int surface_id, |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 954 |
| 955 void GpuProcessHost::CreateCommandBufferError( | 955 void GpuProcessHost::CreateCommandBufferError( |
| 956 const CreateCommandBufferCallback& callback, int32 route_id) { | 956 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 957 callback.Run(route_id); | 957 callback.Run(route_id); |
| 958 } | 958 } |
| 959 | 959 |
| 960 void GpuProcessHost::CreateImageError( | 960 void GpuProcessHost::CreateImageError( |
| 961 const CreateImageCallback& callback, const gfx::Size size) { | 961 const CreateImageCallback& callback, const gfx::Size size) { |
| 962 callback.Run(size); | 962 callback.Run(size); |
| 963 } | 963 } |
| OLD | NEW |