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

Side by Side Diff: chrome/gpu/gpu_command_buffer_stub.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/gpu/gpu_channel.cc ('k') | chrome/gpu/gpu_info_collector.h » ('j') | 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) 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
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)
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_channel.cc ('k') | chrome/gpu/gpu_info_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698