aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-14 15:11:59 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-14 15:11:59 +0000
commit6bf38b59c9de1cd35cd091cf8766117f4e1f66a0 (patch)
tree586fb0cb56795200f273f79eb29c858e8fbe8588
parent7bc13a62609149f0b535c2f3ff7210eb834d8b36 (diff)
Move GL-specific include files to their own subdirectory, to better
coexist alongside D3D backend. Requires gyp change. http://codereview.appspot.com/5665045/ git-svn-id: http://skia.googlecode.com/svn/trunk@3185 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--bench/BenchGpuTimer_gl.cpp2
-rw-r--r--bench/benchmain.cpp4
-rw-r--r--gm/gmmain.cpp4
-rw-r--r--gyp/gpu.gyp16
-rw-r--r--include/gpu/gl/GrGLConfig.h (renamed from include/gpu/GrGLConfig.h)0
-rw-r--r--include/gpu/gl/GrGLConfig_chrome.h (renamed from include/gpu/GrGLConfig_chrome.h)0
-rw-r--r--include/gpu/gl/GrGLDefines.h (renamed from include/gpu/GrGLDefines.h)0
-rw-r--r--include/gpu/gl/GrGLInterface.h (renamed from include/gpu/GrGLInterface.h)0
-rw-r--r--include/gpu/gl/SkGLContext.h (renamed from include/gpu/SkGLContext.h)0
-rw-r--r--include/gpu/gl/SkMesaGLContext.h (renamed from include/gpu/SkMesaGLContext.h)0
-rw-r--r--include/gpu/gl/SkNativeGLContext.h (renamed from include/gpu/SkNativeGLContext.h)0
-rw-r--r--include/gpu/gl/SkNullGLContext.h (renamed from include/gpu/SkNullGLContext.h)0
-rw-r--r--samplecode/SampleApp.cpp2
-rw-r--r--src/gpu/GrGpuFactory.cpp2
-rw-r--r--src/gpu/GrGpuVertex.h2
-rw-r--r--src/gpu/gl/GrGLContextInfo.h3
-rw-r--r--src/gpu/gl/GrGLCreateNullInterface.cpp2
-rw-r--r--src/gpu/gl/GrGLDefaultInterface_native.cpp2
-rw-r--r--src/gpu/gl/GrGLIRect.h2
-rw-r--r--src/gpu/gl/GrGLIndexBuffer.h2
-rw-r--r--src/gpu/gl/GrGLInterface.cpp4
-rw-r--r--src/gpu/gl/GrGLSL.h2
-rw-r--r--src/gpu/gl/GrGLStencilBuffer.h2
-rw-r--r--src/gpu/gl/GrGLUtil.cpp4
-rw-r--r--src/gpu/gl/GrGLVertexBuffer.h2
-rw-r--r--src/gpu/gl/SkGLContext.cpp2
-rw-r--r--src/gpu/gl/SkNullGLContext.cpp2
-rw-r--r--src/gpu/unix/GrGLCreateNativeInterface_unix.cpp2
-rw-r--r--src/gpu/unix/SkNativeGLContext_unix.cpp2
-rwxr-xr-xtests/GLInterfaceValidation.cpp4
-rw-r--r--tests/Test.cpp2
31 files changed, 35 insertions, 36 deletions
diff --git a/bench/BenchGpuTimer_gl.cpp b/bench/BenchGpuTimer_gl.cpp
index 885f7b2bfa..b7bd88b639 100644
--- a/bench/BenchGpuTimer_gl.cpp
+++ b/bench/BenchGpuTimer_gl.cpp
@@ -6,7 +6,7 @@
* found in the LICENSE file.
*/
#include "BenchGpuTimer_gl.h"
-#include "SkGLContext.h"
+#include "gl/SkGLContext.h"
BenchGpuTimer::BenchGpuTimer(const SkGLContext* glctx) {
fContext = glctx;
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 024ad0ff1c..7732268759 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -18,8 +18,8 @@
#include "SkGpuDevice.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
-#include "SkNativeGLContext.h"
-#include "SkNullGLContext.h"
+#include "gl/SkNativeGLContext.h"
+#include "gl/SkNullGLContext.h"
#include "SkNWayCanvas.h"
#include "SkPicture.h"
#include "SkString.h"
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 3958998b56..523faf811d 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -19,8 +19,8 @@
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"
-#include "SkNativeGLContext.h"
-#include "SkMesaGLContext.h"
+#include "gl/SkNativeGLContext.h"
+#include "gl/SkMesaGLContext.h"
#include "SkPicture.h"
#include "SkStream.h"
#include "SkRefCnt.h"
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 37cc4c0d5c..39e0ee9cd6 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -106,10 +106,10 @@
'../include/gpu/SkGr.h',
'../include/gpu/SkGrTexturePixelRef.h',
- '../include/gpu/SkGLContext.h',
- '../include/gpu/SkMesaGLContext.h',
- '../include/gpu/SkNativeGLContext.h',
- '../include/gpu/SkNullGLContext.h',
+ '../include/gpu/gl/SkGLContext.h',
+ '../include/gpu/gl/SkMesaGLContext.h',
+ '../include/gpu/gl/SkNativeGLContext.h',
+ '../include/gpu/gl/SkNullGLContext.h',
'../src/gpu/GrPrintf_skia.cpp',
'../src/gpu/SkGpuCanvas.cpp',
@@ -182,10 +182,10 @@
'../include/gpu/GrTypes.h',
'../include/gpu/GrUserConfig.h',
- '../include/gpu/GrGLConfig.h',
- '../include/gpu/GrGLConfig_chrome.h',
- '../include/gpu/GrGLDefines.h',
- '../include/gpu/GrGLInterface.h',
+ '../include/gpu/gl/GrGLConfig.h',
+ '../include/gpu/gl/GrGLConfig_chrome.h',
+ '../include/gpu/gl/GrGLDefines.h',
+ '../include/gpu/gl/GrGLInterface.h',
'../src/gpu/GrAAHairLinePathRenderer.cpp',
'../src/gpu/GrAAHairLinePathRenderer.h',
diff --git a/include/gpu/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h
index 5ae931c607..5ae931c607 100644
--- a/include/gpu/GrGLConfig.h
+++ b/include/gpu/gl/GrGLConfig.h
diff --git a/include/gpu/GrGLConfig_chrome.h b/include/gpu/gl/GrGLConfig_chrome.h
index 50ea34c6d3..50ea34c6d3 100644
--- a/include/gpu/GrGLConfig_chrome.h
+++ b/include/gpu/gl/GrGLConfig_chrome.h
diff --git a/include/gpu/GrGLDefines.h b/include/gpu/gl/GrGLDefines.h
index e66eec4edf..e66eec4edf 100644
--- a/include/gpu/GrGLDefines.h
+++ b/include/gpu/gl/GrGLDefines.h
diff --git a/include/gpu/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h
index 968afab0d4..968afab0d4 100644
--- a/include/gpu/GrGLInterface.h
+++ b/include/gpu/gl/GrGLInterface.h
diff --git a/include/gpu/SkGLContext.h b/include/gpu/gl/SkGLContext.h
index 542d1bbc06..542d1bbc06 100644
--- a/include/gpu/SkGLContext.h
+++ b/include/gpu/gl/SkGLContext.h
diff --git a/include/gpu/SkMesaGLContext.h b/include/gpu/gl/SkMesaGLContext.h
index 5c329ff120..5c329ff120 100644
--- a/include/gpu/SkMesaGLContext.h
+++ b/include/gpu/gl/SkMesaGLContext.h
diff --git a/include/gpu/SkNativeGLContext.h b/include/gpu/gl/SkNativeGLContext.h
index 36461ba7b2..36461ba7b2 100644
--- a/include/gpu/SkNativeGLContext.h
+++ b/include/gpu/gl/SkNativeGLContext.h
diff --git a/include/gpu/SkNullGLContext.h b/include/gpu/gl/SkNullGLContext.h
index 9e16cee089..9e16cee089 100644
--- a/include/gpu/SkNullGLContext.h
+++ b/include/gpu/gl/SkNullGLContext.h
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 898bda0be8..d40a670e3a 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -22,7 +22,7 @@
#include "GrContext.h"
#include "SkTypeface.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
#include "GrRenderTarget.h"
#include "SkPDFDevice.h"
diff --git a/src/gpu/GrGpuFactory.cpp b/src/gpu/GrGpuFactory.cpp
index 7d0678ef65..585f35f6ab 100644
--- a/src/gpu/GrGpuFactory.cpp
+++ b/src/gpu/GrGpuFactory.cpp
@@ -14,7 +14,7 @@
// #include "GrGpuD3D9.h"
#endif
-#include "GrGLConfig.h"
+#include "gl/GrGLConfig.h"
#include "GrGpu.h"
#include "gl/GrGpuGLShaders.h"
diff --git a/src/gpu/GrGpuVertex.h b/src/gpu/GrGpuVertex.h
index 2abc2f407e..d093e2d068 100644
--- a/src/gpu/GrGpuVertex.h
+++ b/src/gpu/GrGpuVertex.h
@@ -11,7 +11,7 @@
#ifndef GrGpuVertex_DEFINED
#define GrGpuVertex_DEFINED
-#include "GrGLConfig.h"
+#include "gl/GrGLConfig.h"
#include "GrPoint.h"
#if GR_TEXT_SCALAR_IS_USHORT
diff --git a/src/gpu/gl/GrGLContextInfo.h b/src/gpu/gl/GrGLContextInfo.h
index b753608558..c37b11d92a 100644
--- a/src/gpu/gl/GrGLContextInfo.h
+++ b/src/gpu/gl/GrGLContextInfo.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2012 Google Inc.
*
@@ -11,7 +10,7 @@
#define GrGLContextInfo_DEFINED
#include "GrGLCaps.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
#include "GrGLSL.h"
#include "SkString.h"
diff --git a/src/gpu/gl/GrGLCreateNullInterface.cpp b/src/gpu/gl/GrGLCreateNullInterface.cpp
index cdac75f553..5095079ab6 100644
--- a/src/gpu/gl/GrGLCreateNullInterface.cpp
+++ b/src/gpu/gl/GrGLCreateNullInterface.cpp
@@ -7,7 +7,7 @@
*/
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
#include "../GrTDArray.h"
GrGLvoid GR_GL_FUNCTION_TYPE nullGLActiveTexture(GrGLenum texture) {}
diff --git a/src/gpu/gl/GrGLDefaultInterface_native.cpp b/src/gpu/gl/GrGLDefaultInterface_native.cpp
index 7b8b84a9a8..13988c01e5 100644
--- a/src/gpu/gl/GrGLDefaultInterface_native.cpp
+++ b/src/gpu/gl/GrGLDefaultInterface_native.cpp
@@ -6,7 +6,7 @@
* found in the LICENSE file.
*/
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
const GrGLInterface* GrGLDefaultInterface() {
return GrGLCreateNativeInterface();
diff --git a/src/gpu/gl/GrGLIRect.h b/src/gpu/gl/GrGLIRect.h
index e94fa21a5a..aee5fb4cca 100644
--- a/src/gpu/gl/GrGLIRect.h
+++ b/src/gpu/gl/GrGLIRect.h
@@ -11,7 +11,7 @@
#ifndef GrGLIRect_DEFINED
#define GrGLIRect_DEFINED
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
/**
* Helper struct for dealing with the fact that Ganesh and GL use different
diff --git a/src/gpu/gl/GrGLIndexBuffer.h b/src/gpu/gl/GrGLIndexBuffer.h
index 9f32890b28..68c165f685 100644
--- a/src/gpu/gl/GrGLIndexBuffer.h
+++ b/src/gpu/gl/GrGLIndexBuffer.h
@@ -12,7 +12,7 @@
#define GrGLIndexBuffer_DEFINED
#include "../GrIndexBuffer.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
class GrGpuGL;
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
index c1ac088b5f..7fb871c638 100644
--- a/src/gpu/gl/GrGLInterface.cpp
+++ b/src/gpu/gl/GrGLInterface.cpp
@@ -8,8 +8,8 @@
#include "GrTypes.h"
-#include "GrGLInterface.h"
-#include "GrGLDefines.h"
+#include "gl/GrGLInterface.h"
+#include "gl/GrGLDefines.h"
#include <stdio.h>
diff --git a/src/gpu/gl/GrGLSL.h b/src/gpu/gl/GrGLSL.h
index 5b9c5b631f..a3d3921bfc 100644
--- a/src/gpu/gl/GrGLSL.h
+++ b/src/gpu/gl/GrGLSL.h
@@ -8,7 +8,7 @@
#ifndef GrGLSL_DEFINED
#define GrGLSL_DEFINED
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
class GrGLShaderVar;
diff --git a/src/gpu/gl/GrGLStencilBuffer.h b/src/gpu/gl/GrGLStencilBuffer.h
index 0995c7dff0..908921a4e4 100644
--- a/src/gpu/gl/GrGLStencilBuffer.h
+++ b/src/gpu/gl/GrGLStencilBuffer.h
@@ -10,7 +10,7 @@
#ifndef GrGLStencilBuffer_DEFINED
#define GrGLStencilBuffer_DEFINED
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
#include "../GrStencilBuffer.h"
class GrGLStencilBuffer : public GrStencilBuffer {
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp
index f12b407b1a..23ed5b4c08 100644
--- a/src/gpu/gl/GrGLUtil.cpp
+++ b/src/gpu/gl/GrGLUtil.cpp
@@ -7,8 +7,8 @@
*/
-#include "GrGLConfig.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLConfig.h"
+#include "gl/GrGLInterface.h"
void GrGLClearErr(const GrGLInterface* gl) {
while (GR_GL_NO_ERROR != gl->fGetError()) {}
diff --git a/src/gpu/gl/GrGLVertexBuffer.h b/src/gpu/gl/GrGLVertexBuffer.h
index ff03d7a425..5d2ba30898 100644
--- a/src/gpu/gl/GrGLVertexBuffer.h
+++ b/src/gpu/gl/GrGLVertexBuffer.h
@@ -12,7 +12,7 @@
#define GrGLVertexBuffer_DEFINED
#include "../GrVertexBuffer.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
class GrGpuGL;
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp
index 6142d3c572..525afe87a6 100644
--- a/src/gpu/gl/SkGLContext.cpp
+++ b/src/gpu/gl/SkGLContext.cpp
@@ -5,7 +5,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "SkGLContext.h"
+#include "gl/SkGLContext.h"
SkGLContext::SkGLContext()
: fFBO(0)
diff --git a/src/gpu/gl/SkNullGLContext.cpp b/src/gpu/gl/SkNullGLContext.cpp
index 04e63d8bbe..86c09b2045 100644
--- a/src/gpu/gl/SkNullGLContext.cpp
+++ b/src/gpu/gl/SkNullGLContext.cpp
@@ -6,7 +6,7 @@
* found in the LICENSE file.
*/
-#include "SkNullGLContext.h"
+#include "gl/SkNullGLContext.h"
const GrGLInterface* SkNullGLContext::createGLContext() {
return GrGLCreateNullInterface();
diff --git a/src/gpu/unix/GrGLCreateNativeInterface_unix.cpp b/src/gpu/unix/GrGLCreateNativeInterface_unix.cpp
index ab0d351f23..1e9f2e04ad 100644
--- a/src/gpu/unix/GrGLCreateNativeInterface_unix.cpp
+++ b/src/gpu/unix/GrGLCreateNativeInterface_unix.cpp
@@ -7,7 +7,7 @@
*/
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
#include <GL/glx.h>
#include <GL/gl.h>
diff --git a/src/gpu/unix/SkNativeGLContext_unix.cpp b/src/gpu/unix/SkNativeGLContext_unix.cpp
index 907e2b8238..f4199eb0e7 100644
--- a/src/gpu/unix/SkNativeGLContext_unix.cpp
+++ b/src/gpu/unix/SkNativeGLContext_unix.cpp
@@ -5,7 +5,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "SkNativeGLContext.h"
+#include "gl/SkNativeGLContext.h"
#include <GL/glu.h>
diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp
index 2557c4c71c..5cee0e4b62 100755
--- a/tests/GLInterfaceValidation.cpp
+++ b/tests/GLInterfaceValidation.cpp
@@ -7,8 +7,8 @@
*/
#include "Test.h"
-#include "SkNativeGLContext.h"
-#include "SkMesaGLContext.h"
+#include "gl/SkNativeGLContext.h"
+#include "gl/SkMesaGLContext.h"
static void GLInterfaceValidationTest(skiatest::Reporter* reporter) {
typedef const GrGLInterface* (*interfaceFactory)();
diff --git a/tests/Test.cpp b/tests/Test.cpp
index 1c3b691261..62df73130f 100644
--- a/tests/Test.cpp
+++ b/tests/Test.cpp
@@ -8,7 +8,7 @@
#include "Test.h"
#include "GrContext.h"
-#include "SkNativeGLContext.h"
+#include "gl/SkNativeGLContext.h"
#include "SkTLazy.h"
using namespace skiatest;