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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 6992010: Added proxy / stub pair for GPU surfaces. (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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_messages.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) 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/child_thread.h" 12 #include "content/common/child_thread.h"
13 #include "content/common/gpu/gpu_channel.h" 13 #include "content/common/gpu/gpu_channel.h"
14 #include "content/common/gpu/gpu_channel_manager.h" 14 #include "content/common/gpu/gpu_channel_manager.h"
15 #include "content/common/gpu/gpu_command_buffer_stub.h" 15 #include "content/common/gpu/gpu_command_buffer_stub.h"
16 #include "content/common/gpu/gpu_messages.h" 16 #include "content/common/gpu/gpu_messages.h"
17 #include "content/common/gpu/gpu_watchdog.h" 17 #include "content/common/gpu/gpu_watchdog.h"
18 #include "gpu/command_buffer/common/constants.h" 18 #include "gpu/command_buffer/common/constants.h"
19 #include "ui/gfx/gl/gl_context.h" 19 #include "ui/gfx/gl/gl_context.h"
20 #include "ui/gfx/gl/gl_surface.h" 20 #include "ui/gfx/gl/gl_surface.h"
21 21
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "base/win/wrapped_window_proc.h" 23 #include "base/win/wrapped_window_proc.h"
24 #endif 24 #endif
25 25
26 using gpu::Buffer; 26 using gpu::Buffer;
27 27
28 #if defined(OS_WIN)
29 #define kCompositorWindowOwner L"CompositorWindowOwner"
30 #endif // defined(OS_WIN)
31
32 GpuCommandBufferStub::GpuCommandBufferStub( 28 GpuCommandBufferStub::GpuCommandBufferStub(
33 GpuChannel* channel, 29 GpuChannel* channel,
34 gfx::PluginWindowHandle handle, 30 gfx::PluginWindowHandle handle,
35 GpuCommandBufferStub* parent, 31 GpuCommandBufferStub* parent,
36 const gfx::Size& size, 32 const gfx::Size& size,
37 const gpu::gles2::DisallowedExtensions& disallowed_extensions, 33 const gpu::gles2::DisallowedExtensions& disallowed_extensions,
38 const std::string& allowed_extensions, 34 const std::string& allowed_extensions,
39 const std::vector<int32>& attribs, 35 const std::vector<int32>& attribs,
40 uint32 parent_texture_id, 36 uint32 parent_texture_id,
41 int32 route_id, 37 int32 route_id,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 gfx::GLContext::LosesAllContextsOnContextLost()) { 425 gfx::GLContext::LosesAllContextsOnContextLost()) {
430 channel_->LoseAllContexts(); 426 channel_->LoseAllContexts();
431 } else { 427 } else {
432 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state); 428 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state);
433 msg->set_unblock(true); 429 msg->set_unblock(true);
434 Send(msg); 430 Send(msg);
435 } 431 }
436 } 432 }
437 433
438 #endif // defined(ENABLE_GPU) 434 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698