summaryrefslogtreecommitdiffstats
path: root/gpu/pgl
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 16:22:27 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 16:22:27 +0000
commitb78e6049b83a6a221b6c7b47c229b337e3abce43 (patch)
tree99ce055954eb3bc1c825101ed7210bf4a051af89 /gpu/pgl
parent403d5aab152f4a778df09571ed99d3bd6b440388 (diff)
downloadchromium_src-b78e6049b83a6a221b6c7b47c229b337e3abce43.zip
chromium_src-b78e6049b83a6a221b6c7b47c229b337e3abce43.tar.gz
chromium_src-b78e6049b83a6a221b6c7b47c229b337e3abce43.tar.bz2
Change some paths, include files to make the sources build on Native Client.
Needed for Pepper progress. Review URL: http://codereview.chromium.org/552024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/pgl')
-rw-r--r--gpu/pgl/command_buffer_pepper.cc5
-rw-r--r--gpu/pgl/command_buffer_pepper.h7
2 files changed, 10 insertions, 2 deletions
diff --git a/gpu/pgl/command_buffer_pepper.cc b/gpu/pgl/command_buffer_pepper.cc
index 3ee5406..9dd3c70 100644
--- a/gpu/pgl/command_buffer_pepper.cc
+++ b/gpu/pgl/command_buffer_pepper.cc
@@ -3,7 +3,12 @@
// found in the LICENSE file.
#include "gpu/pgl/command_buffer_pepper.h"
+#ifdef __native_client__
+#include <assert.h>
+#define NOTREACHED() assert(0)
+#else
#include "base/logging.h"
+#endif // __native_client__
using base::SharedMemory;
using gpu::Buffer;
diff --git a/gpu/pgl/command_buffer_pepper.h b/gpu/pgl/command_buffer_pepper.h
index ab114e3..aa1d14b 100644
--- a/gpu/pgl/command_buffer_pepper.h
+++ b/gpu/pgl/command_buffer_pepper.h
@@ -8,7 +8,12 @@
#include "gpu/command_buffer/common/command_buffer.h"
#include "third_party/npapi/bindings/npapi.h"
#include "third_party/npapi/bindings/npruntime.h"
+#include "third_party/npapi/bindings/npapi_extensions.h"
+#ifdef __native_client__
+#include "native_client/src/third_party/npapi/files/include/npupp.h"
+#else
#include "webkit/glue/plugins/nphostapi.h"
+#endif // __native_client__
// A CommandBuffer proxy implementation that uses the Pepper API to access
// the command buffer.
@@ -45,5 +50,3 @@ class CommandBufferPepper : public gpu::CommandBuffer {
};
#endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H
-
-