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

Side by Side Diff: content/browser/gpu_process_host_ui_shim.cc

Issue 6901144: Remove the SWP_SHOWWINDOW flag when resizing the compositor host window on the gpu process. If th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/gpu_process_host_ui_shim.h" 5 #include "content/browser/gpu_process_host_ui_shim.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 gdk_window_resize(window, size.width(), size.height()); 274 gdk_window_resize(window, size.width(), size.height());
275 XSync(display, False); 275 XSync(display, False);
276 } 276 }
277 #elif defined(OS_WIN) 277 #elif defined(OS_WIN)
278 SetWindowPos(handle, 278 SetWindowPos(handle,
279 NULL, 279 NULL,
280 0, 0, 280 0, 0,
281 size.width(), 281 size.width(),
282 size.height(), 282 size.height(),
283 SWP_NOSENDCHANGING | SWP_NOCOPYBITS | SWP_NOZORDER | 283 SWP_NOSENDCHANGING | SWP_NOCOPYBITS | SWP_NOZORDER |
284 SWP_NOACTIVATE | SWP_DEFERERASE | SWP_SHOWWINDOW); 284 SWP_NOACTIVATE | SWP_DEFERERASE);
285 #endif 285 #endif
286 } 286 }
287 } 287 }
288 288
289 // Always respond even if the window no longer exists. The GPU process cannot 289 // Always respond even if the window no longer exists. The GPU process cannot
290 // make progress on the resizing command buffer until it receives the 290 // make progress on the resizing command buffer until it receives the
291 // response. 291 // response.
292 Send(new GpuMsg_ResizeViewACK(renderer_id, command_buffer_route_id)); 292 Send(new GpuMsg_ResizeViewACK(renderer_id, command_buffer_route_id));
293 } 293 }
294 294
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 int render_view_id) { 337 int render_view_id) {
338 RenderViewHost* host = RenderViewHost::FromID(renderer_id, 338 RenderViewHost* host = RenderViewHost::FromID(renderer_id,
339 render_view_id); 339 render_view_id);
340 if (!host) { 340 if (!host) {
341 return; 341 return;
342 } 342 }
343 host->ScheduleComposite(); 343 host->ScheduleComposite();
344 } 344 }
345 345
346 #endif 346 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698