diff options
author | kkinnunen <kkinnunen@nvidia.com> | 2015-12-21 04:05:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-21 04:05:53 -0800 |
commit | dd180e795fcdf0ff424e753c7a822fad1ca8a700 (patch) | |
tree | 206b21b22859ce57f29ce52a0b823b1be4f505c1 /src/gpu/gl | |
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 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp b/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp index 61eab4bebf..cf9da9365b 100644 --- a/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp +++ b/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp @@ -9,6 +9,7 @@ #include "gl/GrGLInterface.h" #include "gl/GrGLAssembleInterface.h" #include "gl/command_buffer/SkCommandBufferGLContext.h" +#include "../ports/SkOSEnvironment.h" #include "../ports/SkOSLibrary.h" #if defined SK_BUILD_FOR_MAC @@ -189,6 +190,8 @@ void SkCommandBufferGLContext::initializeGLContext(void* nativeWindow, const int return; } + // Make sure CHROMIUM_path_rendering is enabled for NVPR support. + sk_setenv("CHROME_COMMAND_BUFFER_GLES2_ARGS", "--enable-gl-path-rendering"); fDisplay = gfGetDisplay(EGL_DEFAULT_DISPLAY); if (EGL_NO_DISPLAY == fDisplay) { SkDebugf("Command Buffer: Could not create EGL display.\n"); |