Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: gpu/pgl/command_buffer_pepper.h

Issue 552024: Change some paths, include files to make the sources build on Native Client.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698