diff options
author | 2015-12-21 04:05:53 -0800 | |
---|---|---|
committer | 2015-12-21 04:05:53 -0800 | |
commit | dd180e795fcdf0ff424e753c7a822fad1ca8a700 (patch) | |
tree | 206b21b22859ce57f29ce52a0b823b1be4f505c1 /tests | |
parent | 2d6ba6690f8951e152d8e793191b14afd52f5506 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RTConfRegistryTest.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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 <stdlib.h> - // Friended proxy for SkRTConfRegistry::parse() template <typename T> 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); |