summaryrefslogtreecommitdiffstats
path: root/o3d/gpu_plugin/gpu_processor.h
diff options
context:
space:
mode:
authorapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-22 20:39:21 +0000
committerapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-22 20:39:21 +0000
commit0a10a0c4763019391f6d5e98992524f1fbd04c4c (patch)
tree453bc050d9af8a6faefeb0874a89d83b75859057 /o3d/gpu_plugin/gpu_processor.h
parent0d3843bccab5e58a0f025ac8ef2e9ea23df872ad (diff)
downloadchromium_src-0a10a0c4763019391f6d5e98992524f1fbd04c4c.zip
chromium_src-0a10a0c4763019391f6d5e98992524f1fbd04c4c.tar.gz
chromium_src-0a10a0c4763019391f6d5e98992524f1fbd04c4c.tar.bz2
Added CommandBuffer::GetStatus so remote processes can query whether the plugin has a window handle.
Refactored GPUPluginObject so its CommandBuffer and GPUProcessor can be mocked. Added some new tests using these mock objects. TEST=none BUG=none Review URL: http://codereview.chromium.org/309005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/gpu_plugin/gpu_processor.h')
-rw-r--r--o3d/gpu_plugin/gpu_processor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/o3d/gpu_plugin/gpu_processor.h b/o3d/gpu_plugin/gpu_processor.h
index f0b9a4b..05865ce 100644
--- a/o3d/gpu_plugin/gpu_processor.h
+++ b/o3d/gpu_plugin/gpu_processor.h
@@ -38,17 +38,17 @@ class GPUProcessor : public ::base::RefCounted<GPUProcessor>,
command_buffer::CommandParser* parser,
int commands_per_update);
- bool Initialize(HWND hwnd);
+ virtual bool Initialize(HWND hwnd);
#endif // OS_WIN
virtual ~GPUProcessor();
- void Destroy();
+ virtual void Destroy();
- void ProcessCommands();
+ virtual void ProcessCommands();
#if defined(OS_WIN)
- void SetWindow(HWND handle, int width, int height);
+ virtual bool SetWindow(HWND handle, int width, int height);
#endif
// Implementation of CommandBufferEngine.