diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-05 13:30:59 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-05 13:30:59 +0000 |
commit | 1a165aa4858d38978b176b44c3dfd928921c544f (patch) | |
tree | 260ee04f926f0d6f5c67b351b9710848ebeeeed9 /src/gpu | |
parent | 19dd017a6256be636ccb550752bb563c4e7caeb5 (diff) |
Actually flush the path stencil transform when the matrix changes
Fixes many tests to match the master gm more closely. Examples of fixes:
mixed_xfermodes, strokes_poly, gradients_view_perspective, strokes_round,
... .
Total 58 differing results.
BUG=1479
R=bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://chromiumcodereview.appspot.com/22176002
git-svn-id: http://skia.googlecode.com/svn/trunk@10529 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index a61ca4443a..786640c467 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -211,7 +211,7 @@ void GrGpuGL::flushPathStencilMatrix() { const SkMatrix& vm = this->getDrawState().getViewMatrix(); if (fHWPathStencilMatrixState.fRenderTargetOrigin != rt->origin() || - fHWPathStencilMatrixState.fViewMatrix.cheapEqualTo(viewMatrix) || + !fHWPathStencilMatrixState.fViewMatrix.cheapEqualTo(viewMatrix) || fHWPathStencilMatrixState.fRenderTargetSize!= size) { // rescale the coords from skia's "device" coords to GL's normalized coords, // and perform a y-flip if required. |