From dd180e795fcdf0ff424e753c7a822fad1ca8a700 Mon Sep 17 00:00:00 2001 From: kkinnunen Date: Mon, 21 Dec 2015 04:05:53 -0800 Subject: Enable NVPR with command buffer Set Chromium command-line flag --enable-gl-path-rendering before creating command buffer context. This is needed for the command buffer to expose NVPR at the moment. BUG=skia:2992 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1538863002 Review URL: https://codereview.chromium.org/1538863002 --- tests/RTConfRegistryTest.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/RTConfRegistryTest.cpp b/tests/RTConfRegistryTest.cpp index 84ce942bf6..be019f70b4 100644 --- a/tests/RTConfRegistryTest.cpp +++ b/tests/RTConfRegistryTest.cpp @@ -6,28 +6,19 @@ */ #include "SkRTConf.h" +#include "SkOSEnvironment.h" #include "Test.h" -#include - // Friended proxy for SkRTConfRegistry::parse() template bool test_rt_conf_parse(SkRTConfRegistry* reg, const char* key, T* value) { return reg->parse(key, value); } -static void portable_setenv(const char* key, const char* value) { -#ifdef SK_BUILD_FOR_WIN32 - _putenv_s(key, value); -#else - setenv(key, value, 1); -#endif -} - DEF_TEST(SkRTConfRegistry, reporter) { SkRTConfRegistry reg; - portable_setenv("skia_nonexistent_item", "132"); + sk_setenv("skia_nonexistent_item", "132"); int result = 0; test_rt_conf_parse(®, "nonexistent.item", &result); REPORTER_ASSERT(reporter, result == 132); -- cgit v1.2.3