Make GPU versions of benchs use the same canvas size as raster.
Review URL: https://codereview.appspot.com/7400049
git-svn-id: http://skia.googlecode.com/svn/trunk@7827 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h
index ea3b923..d425b74 100644
--- a/include/gpu/GrContextFactory.h
+++ b/include/gpu/GrContextFactory.h
@@ -28,7 +28,7 @@
* factory is destroyed (though the caller can always grab a ref on the returned
* GrContext to make it outlive the factory).
*/
-class GrContextFactory : GrNoncopyable {
+class GrContextFactory : GrNoncopyable {
public:
/**
* Types of GL contexts supported.
@@ -59,6 +59,27 @@
}
}
+ static const char* GLContextTypeName(GLContextType type) {
+ switch (type) {
+ case kNative_GLContextType:
+ return "native";
+ case kNull_GLContextType:
+ return "null";
+#if SK_ANGLE
+ case kANGLE_GLContextType:
+ return "angle";
+#endif
+#if SK_MESA
+ case kMESA_GLContextType:
+ return "mesa";
+#endif
+ case kDebug_GLContextType:
+ return "debug";
+ default:
+ GrCrash("Unknown GL Context type.");
+ }
+ }
+
GrContextFactory() {
}