| Index: webkit/tools/pepper_test_plugin/command_buffer_pepper.h | 
| =================================================================== | 
| --- webkit/tools/pepper_test_plugin/command_buffer_pepper.h	(revision 0) | 
| +++ webkit/tools/pepper_test_plugin/command_buffer_pepper.h	(revision 0) | 
| @@ -0,0 +1,52 @@ | 
| +// 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. | 
| + | 
| +#ifndef WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 
| +#define WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 
| + | 
| +#include "gpu/command_buffer/common/command_buffer.h" | 
| +#include "third_party/npapi/bindings/npapi.h" | 
| +#include "third_party/npapi/bindings/npruntime.h" | 
| +#include "webkit/glue/plugins/nphostapi.h" | 
| + | 
| +// A CommandBuffer proxy implementation that uses the Pepper API to access | 
| +// the command buffer. | 
| +// TODO(apatrick): move this into a library that can be used by any pepper | 
| +// plugin. | 
| + | 
| +class CommandBufferPepper : public gpu::CommandBuffer { | 
| + public: | 
| +  CommandBufferPepper(NPP npp, NPNetscapeFuncs* browser); | 
| +  virtual ~CommandBufferPepper(); | 
| + | 
| +  // CommandBuffer implementation. | 
| +  virtual bool Initialize(int32 size); | 
| +  virtual gpu::Buffer GetRingBuffer(); | 
| +  virtual int32 GetSize(); | 
| +  virtual int32 SyncOffsets(int32 put_offset); | 
| +  virtual int32 GetGetOffset(); | 
| +  virtual void SetGetOffset(int32 get_offset); | 
| +  virtual int32 GetPutOffset(); | 
| +  virtual void SetPutOffsetChangeCallback(Callback0::Type* callback); | 
| +  virtual int32 CreateTransferBuffer(size_t size); | 
| +  virtual void DestroyTransferBuffer(int32 id); | 
| +  virtual gpu::Buffer GetTransferBuffer(int32 handle); | 
| +  virtual int32 GetToken(); | 
| +  virtual void SetToken(int32 token); | 
| +  virtual int32 ResetParseError(); | 
| +  virtual void SetParseError(int32 parse_error); | 
| +  virtual bool GetErrorStatus(); | 
| +  virtual void RaiseErrorStatus(); | 
| + | 
| + private: | 
| +  NPP npp_; | 
| +  NPNetscapeFuncs* browser_; | 
| +  NPExtensions* extensions_; | 
| +  NPDevice* device_; | 
| +  NPDeviceContext3D context_; | 
| +}; | 
| + | 
| +#endif  // WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 
| + | 
| + | 
|  | 
| Property changes on: webkit\tools\pepper_test_plugin\command_buffer_pepper.h | 
| ___________________________________________________________________ | 
| Added: svn:eol-style | 
| + LF | 
|  | 
|  |