diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-07-30 15:03:45 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-31 16:19:12 +0000 |
commit | c8ece3d5f877d67114dfda51a336dfdf7838095a (patch) | |
tree | b7ee09e0120e9f17e34aa3af8e0bcdf1f6325dea /src/gpu/gl/GrGLPathRendering.cpp | |
parent | 5cfb04a68432ffa8015b9277cc8a126472d664ea (diff) |
Don't use glFrontFace
This is an exploratory commit to see if glFrontFace is the cause of
a recent perf regression. Instead we invert gl_FrontFacing in SkSL.
Bug: skia:
Change-Id: Ida6f6435785e814c089ad34ba2f32793c4ac23c4
Reviewed-on: https://skia-review.googlesource.com/144410
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLPathRendering.cpp')
-rw-r--r-- | src/gpu/gl/GrGLPathRendering.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp index 8a53f88b2c..85c129f8b0 100644 --- a/src/gpu/gl/GrGLPathRendering.cpp +++ b/src/gpu/gl/GrGLPathRendering.cpp @@ -88,12 +88,11 @@ void GrGLPathRendering::onStencilPath(const StencilPathArgs& args, const GrPath* gpu->flushColorWrite(false); GrGLRenderTarget* rt = static_cast<GrGLRenderTarget*>(args.fProxy->priv().peekRenderTarget()); - GrSurfaceOrigin origin = args.fProxy->origin(); SkISize size = SkISize::Make(rt->width(), rt->height()); - this->setProjectionMatrix(*args.fViewMatrix, size, origin); - gpu->flushScissor(*args.fScissor, rt->getViewport(), origin); + this->setProjectionMatrix(*args.fViewMatrix, size, args.fProxy->origin()); + gpu->flushScissor(*args.fScissor, rt->getViewport(), args.fProxy->origin()); gpu->flushHWAAState(rt, args.fUseHWAA, true); - gpu->flushRenderTarget(rt, origin); + gpu->flushRenderTarget(rt); const GrGLPath* glPath = static_cast<const GrGLPath*>(path); |