diff options
author | 2012-06-28 18:48:06 +0000 | |
---|---|---|
committer | 2012-06-28 18:48:06 +0000 | |
commit | ded4f4b163f5aa19c22c871178c55ecb34623846 (patch) | |
tree | 20c052999f9345c8cc8d0196e92760a5f4ca9273 /src/gpu/GrGpu.cpp | |
parent | 28060e7c940b07038bdaa3c5f8d1d87cf199e228 (diff) |
Initial support for GL_NV_path_renering. Experimental, there are still some issues to resolve, set gyp variable skia_nv_path_rendering=1 or build flag GR_GL_USE_NV_PATH_RENDERING to enable.
http://codereview.appspot.com/6349049/
git-svn-id: http://skia.googlecode.com/svn/trunk@4390 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 7807324e0f..71e341b318 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -439,9 +439,13 @@ void GrGpu::onDrawNonIndexed(GrPrimitiveType type, this->onGpuDrawNonIndexed(type, sVertex, vertexCount); } -void GrGpu::onStencilPath(const GrPath& path, GrPathFill fill) { +void GrGpu::onStencilPath(const GrPath* path, GrPathFill fill) { this->handleDirtyContext(); + // TODO: make this more effecient (don't copy and copy back) + GrAutoTRestore<GrStencilSettings> asr(this->drawState()->stencil()); + + this->setStencilPathSettings(*path, fill, this->drawState()->stencil()); if (!this->setupClipAndFlushState(kStencilPath_DrawType)) { return; } |