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

Unified Diff: gpu/command_buffer/service/gpu_processor_win.cc

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_unittest.cc ('k') | gpu/command_buffer/service/mocks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_processor_win.cc
===================================================================
--- gpu/command_buffer/service/gpu_processor_win.cc (revision 34314)
+++ gpu/command_buffer/service/gpu_processor_win.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,7 @@
using ::base::SharedMemory;
-namespace command_buffer {
+namespace gpu {
GPUProcessor::GPUProcessor(CommandBuffer* command_buffer)
: command_buffer_(command_buffer),
@@ -29,7 +29,7 @@
parser_.reset(parser);
}
-bool GPUProcessor::Initialize(HWND handle) {
+bool GPUProcessor::Initialize(gfx::PluginWindowHandle handle) {
DCHECK(handle);
// Cannot reinitialize.
@@ -45,10 +45,10 @@
}
void* ptr = ring_buffer->memory();
- parser_.reset(new command_buffer::CommandParser(ptr, size, 0, size, 0,
+ parser_.reset(new gpu::CommandParser(ptr, size, 0, size, 0,
decoder_.get()));
} else {
- parser_.reset(new command_buffer::CommandParser(NULL, 0, 0, 0, 0,
+ parser_.reset(new gpu::CommandParser(NULL, 0, 0, 0, 0,
decoder_.get()));
}
@@ -65,7 +65,9 @@
}
}
-bool GPUProcessor::SetWindow(HWND handle, int width, int height) {
+bool GPUProcessor::SetWindow(gfx::PluginWindowHandle handle,
+ int width,
+ int height) {
if (handle == NULL) {
// Destroy GAPI when the window handle becomes invalid.
Destroy();
@@ -75,4 +77,4 @@
}
}
-} // namespace command_buffer
+} // namespace gpu
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_unittest.cc ('k') | gpu/command_buffer/service/mocks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698