Move GL-specific include files to their own subdirectory, to better
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 14 Feb 2012 15:11:59 +0000 (15:11 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 14 Feb 2012 15:11:59 +0000 (15:11 +0000)
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

31 files changed:
bench/BenchGpuTimer_gl.cpp
bench/benchmain.cpp
gm/gmmain.cpp
gyp/gpu.gyp
include/gpu/gl/GrGLConfig.h [moved from include/gpu/GrGLConfig.h with 100% similarity]
include/gpu/gl/GrGLConfig_chrome.h [moved from include/gpu/GrGLConfig_chrome.h with 100% similarity]
include/gpu/gl/GrGLDefines.h [moved from include/gpu/GrGLDefines.h with 100% similarity]
include/gpu/gl/GrGLInterface.h [moved from include/gpu/GrGLInterface.h with 100% similarity]
include/gpu/gl/SkGLContext.h [moved from include/gpu/SkGLContext.h with 100% similarity]
include/gpu/gl/SkMesaGLContext.h [moved from include/gpu/SkMesaGLContext.h with 100% similarity]
include/gpu/gl/SkNativeGLContext.h [moved from include/gpu/SkNativeGLContext.h with 100% similarity]
include/gpu/gl/SkNullGLContext.h [moved from include/gpu/SkNullGLContext.h with 100% similarity]
samplecode/SampleApp.cpp
src/gpu/GrGpuFactory.cpp
src/gpu/GrGpuVertex.h
src/gpu/gl/GrGLContextInfo.h
src/gpu/gl/GrGLCreateNullInterface.cpp
src/gpu/gl/GrGLDefaultInterface_native.cpp
src/gpu/gl/GrGLIRect.h
src/gpu/gl/GrGLIndexBuffer.h
src/gpu/gl/GrGLInterface.cpp
src/gpu/gl/GrGLSL.h
src/gpu/gl/GrGLStencilBuffer.h
src/gpu/gl/GrGLUtil.cpp
src/gpu/gl/GrGLVertexBuffer.h
src/gpu/gl/SkGLContext.cpp
src/gpu/gl/SkNullGLContext.cpp
src/gpu/unix/GrGLCreateNativeInterface_unix.cpp
src/gpu/unix/SkNativeGLContext_unix.cpp
tests/GLInterfaceValidation.cpp
tests/Test.cpp

index 885f7b2..b7bd88b 100644 (file)
@@ -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;
index 024ad0f..7732268 100644 (file)
@@ -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"
index 3958998..523faf8 100644 (file)
@@ -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"
index 37cc4c0..39e0ee9 100644 (file)
         '../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',
         '../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',
index 898bda0..d40a670 100644 (file)
@@ -22,7 +22,7 @@
 #include "GrContext.h"
 #include "SkTypeface.h"
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 #include "GrRenderTarget.h"
 
 #include "SkPDFDevice.h"
index 7d0678e..585f35f 100644 (file)
@@ -14,7 +14,7 @@
 //    #include "GrGpuD3D9.h"
 #endif
 
-#include "GrGLConfig.h"
+#include "gl/GrGLConfig.h"
 
 #include "GrGpu.h"
 #include "gl/GrGpuGLShaders.h"
index 2abc2f4..d093e2d 100644 (file)
@@ -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
index b753608..c37b11d 100644 (file)
@@ -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"
index cdac75f..5095079 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 #include "../GrTDArray.h"
 
 GrGLvoid GR_GL_FUNCTION_TYPE nullGLActiveTexture(GrGLenum texture) {}
index 7b8b84a..13988c0 100644 (file)
@@ -6,7 +6,7 @@
  * found in the LICENSE file.
  */
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 
 const GrGLInterface* GrGLDefaultInterface() {
     return GrGLCreateNativeInterface();
index e94fa21..aee5fb4 100644 (file)
@@ -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
index 9f32890..68c165f 100644 (file)
@@ -12,7 +12,7 @@
 #define GrGLIndexBuffer_DEFINED
 
 #include "../GrIndexBuffer.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 
 class GrGpuGL;
 
index c1ac088..7fb871c 100644 (file)
@@ -8,8 +8,8 @@
 
 
 #include "GrTypes.h"
-#include "GrGLInterface.h"
-#include "GrGLDefines.h"
+#include "gl/GrGLInterface.h"
+#include "gl/GrGLDefines.h"
 
 #include <stdio.h>
 
index 5b9c5b6..a3d3921 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef GrGLSL_DEFINED
 #define GrGLSL_DEFINED
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 
 class GrGLShaderVar;
 
index 0995c7d..908921a 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef GrGLStencilBuffer_DEFINED
 #define GrGLStencilBuffer_DEFINED
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 #include "../GrStencilBuffer.h"
 
 class GrGLStencilBuffer : public GrStencilBuffer {
index f12b407..23ed5b4 100644 (file)
@@ -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()) {}
index ff03d7a..5d2ba30 100644 (file)
@@ -12,7 +12,7 @@
 #define GrGLVertexBuffer_DEFINED
 
 #include "../GrVertexBuffer.h"
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 
 class GrGpuGL;
 
index 6142d3c..525afe8 100644 (file)
@@ -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)
index 04e63d8..86c09b2 100644 (file)
@@ -6,7 +6,7 @@
  * found in the LICENSE file.
  */
 
-#include "SkNullGLContext.h"
+#include "gl/SkNullGLContext.h"
 
 const GrGLInterface* SkNullGLContext::createGLContext() {
     return GrGLCreateNullInterface();
index ab0d351..1e9f2e0 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 
-#include "GrGLInterface.h"
+#include "gl/GrGLInterface.h"
 
 #include <GL/glx.h>
 #include <GL/gl.h>
index 907e2b8..f4199eb 100644 (file)
@@ -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>
 
index 2557c4c..5cee0e4 100755 (executable)
@@ -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)();
index 1c3b691..62df731 100644 (file)
@@ -8,7 +8,7 @@
 #include "Test.h"
 
 #include "GrContext.h"
-#include "SkNativeGLContext.h"
+#include "gl/SkNativeGLContext.h"
 #include "SkTLazy.h"
 
 using namespace skiatest;