| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, | 112 base::Bind(&AcceleratedSurfaceBuffersSwappedCompletedForGPU, |
| 113 host_id, | 113 host_id, |
| 114 route_id, | 114 route_id, |
| 115 alive)); | 115 alive)); |
| 116 return; | 116 return; |
| 117 } | 117 } |
| 118 | 118 |
| 119 GpuProcessHost* host = GpuProcessHost::FromID(host_id); | 119 GpuProcessHost* host = GpuProcessHost::FromID(host_id); |
| 120 if (host) { | 120 if (host) { |
| 121 if (alive) | 121 if (alive) |
| 122 host->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id, 0)); | 122 host->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id, false, 0)); |
| 123 else | 123 else |
| 124 host->ForceShutdown(); | 124 host->ForceShutdown(); |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 | 127 |
| 128 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
| 129 // This sends a ViewMsg_SwapBuffers_ACK directly to the renderer process | 129 // This sends a ViewMsg_SwapBuffers_ACK directly to the renderer process |
| 130 // (RenderWidget). This path is currently not used with the threaded compositor. | 130 // (RenderWidget). This path is currently not used with the threaded compositor. |
| 131 void AcceleratedSurfaceBuffersSwappedCompletedForRenderer( | 131 void AcceleratedSurfaceBuffersSwappedCompletedForRenderer( |
| 132 int surface_id, | 132 int surface_id, |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 const IPC::ChannelHandle& channel_handle, | 907 const IPC::ChannelHandle& channel_handle, |
| 908 base::ProcessHandle renderer_process_for_gpu, | 908 base::ProcessHandle renderer_process_for_gpu, |
| 909 const content::GPUInfo& gpu_info) { | 909 const content::GPUInfo& gpu_info) { |
| 910 callback.Run(channel_handle, gpu_info); | 910 callback.Run(channel_handle, gpu_info); |
| 911 } | 911 } |
| 912 | 912 |
| 913 void GpuProcessHost::CreateCommandBufferError( | 913 void GpuProcessHost::CreateCommandBufferError( |
| 914 const CreateCommandBufferCallback& callback, int32 route_id) { | 914 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 915 callback.Run(route_id); | 915 callback.Run(route_id); |
| 916 } | 916 } |
| OLD | NEW |