OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/common/gpu_messages.h" | |
11 #include "chrome/gpu/gpu_channel.h" | 10 #include "chrome/gpu/gpu_channel.h" |
12 #include "chrome/gpu/gpu_command_buffer_stub.h" | 11 #include "chrome/gpu/gpu_command_buffer_stub.h" |
13 #include "chrome/gpu/gpu_thread.h" | 12 #include "chrome/gpu/gpu_thread.h" |
14 #include "content/common/child_thread.h" | 13 #include "content/common/child_thread.h" |
| 14 #include "content/common/gpu_messages.h" |
15 | 15 |
16 using gpu::Buffer; | 16 using gpu::Buffer; |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #define kCompositorWindowOwner L"CompositorWindowOwner" | 19 #define kCompositorWindowOwner L"CompositorWindowOwner" |
20 #endif // defined(OS_WIN) | 20 #endif // defined(OS_WIN) |
21 | 21 |
22 GpuCommandBufferStub::GpuCommandBufferStub( | 22 GpuCommandBufferStub::GpuCommandBufferStub( |
23 GpuChannel* channel, | 23 GpuChannel* channel, |
24 gfx::PluginWindowHandle handle, | 24 gfx::PluginWindowHandle handle, |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 #elif defined(OS_WIN) | 407 #elif defined(OS_WIN) |
408 HWND hwnd = static_cast<HWND>(compositor_window_); | 408 HWND hwnd = static_cast<HWND>(compositor_window_); |
409 UINT swp_flags = SWP_NOSENDCHANGING | SWP_NOOWNERZORDER | SWP_NOCOPYBITS | | 409 UINT swp_flags = SWP_NOSENDCHANGING | SWP_NOOWNERZORDER | SWP_NOCOPYBITS | |
410 SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_DEFERERASE; | 410 SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_DEFERERASE; |
411 SetWindowPos(hwnd, NULL, 0, 0, size.width(), size.height(), swp_flags); | 411 SetWindowPos(hwnd, NULL, 0, 0, size.width(), size.height(), swp_flags); |
412 #endif // defined(OS_LINUX) | 412 #endif // defined(OS_LINUX) |
413 } | 413 } |
414 } | 414 } |
415 | 415 |
416 #endif // defined(ENABLE_GPU) | 416 #endif // defined(ENABLE_GPU) |
OLD | NEW |