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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With a unittest (and minor compile fixes for other platforms). Created 8 years, 1 month 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) 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
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));
piman 2012/10/25 00:14:08 Should it really be false here? I think this path
jonathan.backer 2012/10/25 15:19:04 Piping it through. I'll send presented = false on
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698