diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 01:06:32 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 01:06:32 +0000 |
commit | 6ebf2fc952b8170971e37971e9d1362c64424e89 (patch) | |
tree | c5ec2454ecc2af8f302893de6c7bfea60b672791 /chrome/gpu/gpu_command_buffer_stub.cc | |
parent | 59a77daa557ef00a90742ece6994563bbdeddc73 (diff) | |
download | chromium_src-6ebf2fc952b8170971e37971e9d1362c64424e89.zip chromium_src-6ebf2fc952b8170971e37971e9d1362c64424e89.tar.gz chromium_src-6ebf2fc952b8170971e37971e9d1362c64424e89.tar.bz2 |
linux: add accelerated compositing.
Similar to Windows, this doesn't handle exposes currently, nor WebGL.
Other caveat: tearing off a tab causes trouble to the gpu process.
Review URL: http://codereview.chromium.org/2886003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_command_buffer_stub.cc')
-rw-r--r-- | chrome/gpu/gpu_command_buffer_stub.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/gpu/gpu_command_buffer_stub.cc b/chrome/gpu/gpu_command_buffer_stub.cc index a95b4c1..ee9d937 100644 --- a/chrome/gpu/gpu_command_buffer_stub.cc +++ b/chrome/gpu/gpu_command_buffer_stub.cc @@ -14,13 +14,13 @@ using gpu::Buffer; GpuCommandBufferStub::GpuCommandBufferStub(GpuChannel* channel, - gfx::NativeView view, + gfx::PluginWindowHandle handle, GpuCommandBufferStub* parent, const gfx::Size& size, uint32 parent_texture_id, int32 route_id) : channel_(channel), - view_(view), + handle_(handle), parent_(parent), initial_size_(size), parent_texture_id_(parent_texture_id), @@ -73,11 +73,8 @@ void GpuCommandBufferStub::OnInitialize( parent_ ? parent_->processor_.get() : NULL; processor_.reset(new gpu::GPUProcessor(command_buffer_.get())); // TODO(apatrick): The reinterpret_cast below is only valid on windows. -#if !defined(OS_WIN) - DCHECK_EQ(view_, static_cast<gfx::NativeView>(0)); -#endif if (processor_->Initialize( - reinterpret_cast<gfx::PluginWindowHandle>(view_), + handle_, initial_size_, parent_processor, parent_texture_id_)) { |