OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 5 #ifndef WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ |
6 #define WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 6 #define WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ |
7 | 7 |
8 #include "gpu/command_buffer/common/command_buffer.h" | 8 #include "gpu/command_buffer/common/command_buffer.h" |
9 #include "third_party/npapi/bindings/npapi.h" | 9 #include "third_party/npapi/bindings/npapi.h" |
10 #include "third_party/npapi/bindings/npruntime.h" | 10 #include "third_party/npapi/bindings/npruntime.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 virtual ~CommandBufferPepper(); | 21 virtual ~CommandBufferPepper(); |
22 | 22 |
23 // CommandBuffer implementation. | 23 // CommandBuffer implementation. |
24 virtual bool Initialize(int32 size); | 24 virtual bool Initialize(int32 size); |
25 virtual gpu::Buffer GetRingBuffer(); | 25 virtual gpu::Buffer GetRingBuffer(); |
26 virtual int32 GetSize(); | 26 virtual int32 GetSize(); |
27 virtual int32 SyncOffsets(int32 put_offset); | 27 virtual int32 SyncOffsets(int32 put_offset); |
28 virtual int32 GetGetOffset(); | 28 virtual int32 GetGetOffset(); |
29 virtual void SetGetOffset(int32 get_offset); | 29 virtual void SetGetOffset(int32 get_offset); |
30 virtual int32 GetPutOffset(); | 30 virtual int32 GetPutOffset(); |
31 virtual void SetPutOffsetChangeCallback(Callback0::Type* callback); | |
32 virtual int32 CreateTransferBuffer(size_t size); | 31 virtual int32 CreateTransferBuffer(size_t size); |
33 virtual void DestroyTransferBuffer(int32 id); | 32 virtual void DestroyTransferBuffer(int32 id); |
34 virtual gpu::Buffer GetTransferBuffer(int32 handle); | 33 virtual gpu::Buffer GetTransferBuffer(int32 handle); |
35 virtual int32 GetToken(); | 34 virtual int32 GetToken(); |
36 virtual void SetToken(int32 token); | 35 virtual void SetToken(int32 token); |
37 virtual int32 ResetParseError(); | 36 virtual int32 ResetParseError(); |
38 virtual void SetParseError(int32 parse_error); | 37 virtual void SetParseError(int32 parse_error); |
39 virtual bool GetErrorStatus(); | 38 virtual bool GetErrorStatus(); |
40 virtual void RaiseErrorStatus(); | 39 virtual void RaiseErrorStatus(); |
41 | 40 |
42 private: | 41 private: |
43 NPP npp_; | 42 NPP npp_; |
44 NPNetscapeFuncs* browser_; | 43 NPNetscapeFuncs* browser_; |
45 NPExtensions* extensions_; | 44 NPExtensions* extensions_; |
46 NPDevice* device_; | 45 NPDevice* device_; |
47 NPDeviceContext3D context_; | 46 NPDeviceContext3D context_; |
48 }; | 47 }; |
49 | 48 |
50 #endif // WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ | 49 #endif // WEBKIT_TOOLS_PEPPER_TEST_PLUGIN_COMMAND_BUFFER_PEPPER_H_ |
51 | 50 |
52 | 51 |
OLD | NEW |