From 1a165aa4858d38978b176b44c3dfd928921c544f Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 5 Aug 2013 13:30:59 +0000 Subject: 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 --- src/gpu/gl/GrGpuGL_program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3