| 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" |
| 11 #include "third_party/npapi/bindings/npapi_extensions.h" |
| 12 #ifdef __native_client__ |
| 13 #include "native_client/src/third_party/npapi/files/include/npupp.h" |
| 14 #else |
| 11 #include "webkit/glue/plugins/nphostapi.h" | 15 #include "webkit/glue/plugins/nphostapi.h" |
| 16 #endif // __native_client__ |
| 12 | 17 |
| 13 // A CommandBuffer proxy implementation that uses the Pepper API to access | 18 // A CommandBuffer proxy implementation that uses the Pepper API to access |
| 14 // the command buffer. | 19 // the command buffer. |
| 15 | 20 |
| 16 class CommandBufferPepper : public gpu::CommandBuffer { | 21 class CommandBufferPepper : public gpu::CommandBuffer { |
| 17 public: | 22 public: |
| 18 CommandBufferPepper(NPP npp, | 23 CommandBufferPepper(NPP npp, |
| 19 NPDevice* device, | 24 NPDevice* device, |
| 20 NPDeviceContext3D* device_context); | 25 NPDeviceContext3D* device_context); |
| 21 virtual ~CommandBufferPepper(); | 26 virtual ~CommandBufferPepper(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 38 virtual bool GetErrorStatus(); | 43 virtual bool GetErrorStatus(); |
| 39 virtual void RaiseErrorStatus(); | 44 virtual void RaiseErrorStatus(); |
| 40 | 45 |
| 41 private: | 46 private: |
| 42 NPP npp_; | 47 NPP npp_; |
| 43 NPDevice* device_; | 48 NPDevice* device_; |
| 44 NPDeviceContext3D* context_; | 49 NPDeviceContext3D* context_; |
| 45 }; | 50 }; |
| 46 | 51 |
| 47 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H | 52 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H |
| 48 | |
| 49 | |
| OLD | NEW |