Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: tools/PictureRenderer.h

Issue 125083004: Support mesa config in render_pictures. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Merge with ToT Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/PictureRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.h
===================================================================
--- tools/PictureRenderer.h (revision 12915)
+++ tools/PictureRenderer.h (working copy)
@@ -69,6 +69,9 @@
#if SK_ANGLE
kAngle_DeviceType,
#endif
+#if SK_MESA
+ kMesa_DeviceType,
+#endif
kBitmap_DeviceType,
#if SK_SUPPORT_GPU
kGPU_DeviceType,
@@ -177,7 +180,12 @@
glContextType = GrContextFactory::kANGLE_GLContextType;
break;
#endif
+#if SK_MESA
+ case kMesa_DeviceType:
+ glContextType = GrContextFactory::kMESA_GLContextType;
+ break;
#endif
+#endif
default:
// Invalid device type.
return false;
@@ -256,6 +264,11 @@
config.append("_angle");
break;
#endif
+#if SK_MESA
+ case kMesa_DeviceType:
+ config.append("_mesa");
+ break;
+#endif
default:
// Assume that no extra info means bitmap.
break;
@@ -272,7 +285,11 @@
// fall through
#if SK_ANGLE
case kAngle_DeviceType:
+ // fall through
#endif
+#if SK_MESA
+ case kMesa_DeviceType:
+#endif
return true;
default:
return false;
@@ -291,6 +308,11 @@
glContextType = GrContextFactory::kANGLE_GLContextType;
break;
#endif
+#if SK_MESA
+ case kMesa_DeviceType:
+ glContextType = GrContextFactory::kMESA_GLContextType;
+ break;
+#endif
default:
return NULL;
}
« no previous file with comments | « no previous file | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698