diff options
author | vbuzinov <vbuzinov@nvidia.com> | 2015-09-30 23:02:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-30 23:02:06 -0700 |
commit | 3e77ba96d56d15db30ac6d8ccb900e30aafcbb16 (patch) | |
tree | d70cd72b103537c691d7919625244d2f82238c65 /src/gpu/gl/GrGLPathRendering.cpp | |
parent | 6634cbb427d97f88b6f719fc34ff9b8dbcf8a1f4 (diff) |
Implement stencil clipping in mixed sampled render targets
This change enables multisampled clipping for mixed sampled
render targets. Previously clipping in mixed samples config
behaved the same as in the gpu config.
In order to retrofit non-MSAA draw methods, programmable sample
locations are used in order to colocate all samples at (0.5, 0.5).
Requires support for NV_sample_locations.
BUG=skia:4399
Review URL: https://codereview.chromium.org/1232103002
Diffstat (limited to 'src/gpu/gl/GrGLPathRendering.cpp')
-rw-r--r-- | src/gpu/gl/GrGLPathRendering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp index 78f78baf9d..a74014b96b 100644 --- a/src/gpu/gl/GrGLPathRendering.cpp +++ b/src/gpu/gl/GrGLPathRendering.cpp @@ -100,7 +100,7 @@ void GrGLPathRendering::onStencilPath(const StencilPathArgs& args, const GrPath* SkISize size = SkISize::Make(rt->width(), rt->height()); this->setProjectionMatrix(*args.fViewMatrix, size, rt->origin()); gpu->flushScissor(*args.fScissor, rt->getViewport(), rt->origin()); - gpu->flushHWAAState(rt, args.fUseHWAA); + gpu->flushHWAAState(rt, args.fUseHWAA, true); gpu->flushRenderTarget(rt, nullptr); const GrGLPath* glPath = static_cast<const GrGLPath*>(path); |