Index: src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp |
diff --git a/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp b/src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp |
index 61eab4bebfc20d1a300bd1f4a2b036983dedf93b..cf9da9365b195a43775305e8f0f98d08d3511eef 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"); |