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