Fixed up SK_SUPPORT_GPU flags.
git-svn-id: http://skia.googlecode.com/svn/trunk@5186 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index f0f9dbd..0a6d0a8d 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -78,12 +78,14 @@
fCanvas->flush();
+#if SK_SUPPORT_GPU
if (this->isUsingGpuDevice()) {
SkGLContext* glContext = fGrContextFactory.getGLContext(
GrContextFactory::kNative_GLContextType);
SK_GL(*glContext, Finish());
fGrContext->freeGpuResources();
}
+#endif
}
void PipePictureRenderer::render() {
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp
index ef0dbf0..d906214 100644
--- a/tools/bench_pictures_main.cpp
+++ b/tools/bench_pictures_main.cpp
@@ -56,8 +56,8 @@
": Use the corresponding device. Default is bitmap.\n");
SkDebugf(
" bitmap, Render to a bitmap.\n");
- SkDebugf(
#if SK_SUPPORT_GPU
+ SkDebugf(
" gpu, Render to the GPU.\n");
#endif
SkDebugf("\n");
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp
index 48139ce..dfea915 100644
--- a/tools/render_pictures_main.cpp
+++ b/tools/render_pictures_main.cpp
@@ -55,8 +55,8 @@
": Use the corresponding device. Default is bitmap.\n");
SkDebugf(
" bitmap, Render to a bitmap.\n");
- SkDebugf(
#if SK_SUPPORT_GPU
+ SkDebugf(
" gpu, Render to the GPU.\n");
#endif
}