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

Unified Diff: tests/GLProgramsTest.cpp

Issue 1012723002: Use C locale for numerics when emitting shaders. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix mac includes Created 5 years, 9 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 | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GLProgramsTest.cpp
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 897e261e5a6353a9be5c0ccbcb3a43b610fde17d..d67d1118ed84f1b654c3787251ea339146bc3571 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -337,6 +337,14 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
}
DEF_GPUTEST(GLPrograms, reporter, factory) {
+ // Set a locale that would cause shader compilation to fail because of , as decimal separator.
+ // skbug 3330
+#ifdef SK_BUILD_FOR_WIN
+ GrAutoLocaleSetter als("sv-SE");
+#else
+ GrAutoLocaleSetter als("sv_SE.UTF-8");
+#endif
+
for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type));
if (context) {
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698