Have GPU based approach workingish.
Benchmarks do not work and it is always on.
git-svn-id: http://skia.googlecode.com/svn/trunk@5175 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h
index 8f6a8fd..5f8e791 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -34,13 +34,21 @@
}
void setUseBitmapDevice() {
- fDeviceType=kBitmap_DeviceType;
+ fDeviceType = kBitmap_DeviceType;
+ }
+
+ bool isUsingBitmapDevice() {
+ return fDeviceType == kBitmap_DeviceType;
}
#if SK_SUPPORT_GPU
void setUseGpuDevice() {
fDeviceType = kGPU_DeviceType;
}
+
+ bool isUsingGpuDevice() {
+ return fDeviceType == kGPU_DeviceType;
+ }
#endif
PictureRenderer()