| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GPU_PGL_COMMAND_BUFFER_PEPPER_H | 5 #ifndef GPU_PGL_COMMAND_BUFFER_PEPPER_H |
| 6 #define GPU_PGL_COMMAND_BUFFER_PEPPER_H | 6 #define GPU_PGL_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 19 matching lines...) Expand all Loading... |
| 30 virtual gpu::Buffer GetRingBuffer(); | 30 virtual gpu::Buffer GetRingBuffer(); |
| 31 virtual State GetState(); | 31 virtual State GetState(); |
| 32 virtual State Flush(int32 put_offset); | 32 virtual State Flush(int32 put_offset); |
| 33 virtual void SetGetOffset(int32 get_offset); | 33 virtual void SetGetOffset(int32 get_offset); |
| 34 virtual int32 CreateTransferBuffer(size_t size); | 34 virtual int32 CreateTransferBuffer(size_t size); |
| 35 virtual void DestroyTransferBuffer(int32 id); | 35 virtual void DestroyTransferBuffer(int32 id); |
| 36 virtual gpu::Buffer GetTransferBuffer(int32 handle); | 36 virtual gpu::Buffer GetTransferBuffer(int32 handle); |
| 37 virtual void SetToken(int32 token); | 37 virtual void SetToken(int32 token); |
| 38 virtual void SetParseError(gpu::error::Error error); | 38 virtual void SetParseError(gpu::error::Error error); |
| 39 | 39 |
| 40 gpu::error::Error GetCachedError(); |
| 41 |
| 40 private: | 42 private: |
| 41 CommandBuffer::State ConvertState(); | 43 CommandBuffer::State ConvertState(); |
| 42 | 44 |
| 43 NPP npp_; | 45 NPP npp_; |
| 44 NPDevice* device_; | 46 NPDevice* device_; |
| 45 NPDeviceContext3D* context_; | 47 NPDeviceContext3D* context_; |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H | 50 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H |
| OLD | NEW |