Fix includes files missing in release builds from GrCustomStageUnitTest.h.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 14:54:45 +0000 (14:54 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 14:54:45 +0000 (14:54 +0000)
Also fix SK_SUPPORT_GPU=0 build breaks in gmmain.cpp and GLProgramsTest.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@4947 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/gmmain.cpp
include/gpu/GrCustomStageUnitTest.h
tests/GLProgramsTest.cpp

index 45ad451..c944378 100644 (file)
@@ -18,6 +18,7 @@
 #include "SkPicture.h"
 #include "SkRefCnt.h"
 #include "SkStream.h"
+#include "SkTArray.h"
 #include "SamplePipeControllers.h"
 
 #if SK_SUPPORT_GPU
index 9cbadf3..f928727 100644 (file)
@@ -9,6 +9,8 @@
 #define GrCustomStageUnitTest_DEFINED
 
 #include "SkRandom.h"
+#include "GrNoncopyable.h"
+#include "SkTArray.h"
 
 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
 
index a43ad83..199cc49 100644 (file)
@@ -8,6 +8,10 @@
 
 // This is a GPU-backend specific test. It relies on static intializers to work
 
+#include "SkTypes.h"
+
+#if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
+
 #include "gl/GrGpuGL.h"
 #include "effects/GrColorTableEffect.h"
 #include "effects/GrConvolutionEffect.h"
@@ -17,8 +21,6 @@
 #include "GrRandom.h"
 #include "Test.h"
 
-#if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
-
 namespace {
 
 // GrRandoms nextU() values have patterns in the low bits