trivial fix for drawvertices bounds
authorjoshualitt <joshualitt@chromium.org>
Tue, 5 May 2015 20:58:20 +0000 (13:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 20:58:20 +0000 (13:58 -0700)
BUG=skia:

Review URL: https://codereview.chromium.org/1127633003

src/gpu/GrContext.cpp

index 8bdfa7f9de374c7ceecf5cd5d3134b34c27dbee0..b361b671c3b3080b9373ee30a76daf9ce91d7b7a 100755 (executable)
@@ -1019,6 +1019,8 @@ void GrContext::drawVertices(GrRenderTarget* rt,
         return;
     }
 
+    viewMatrix.mapRect(&bounds);
+
     DrawVerticesBatch::Geometry geometry;
     geometry.fColor = paint.getColor();
     SkAutoTUnref<GrBatch> batch(DrawVerticesBatch::Create(geometry, primitiveType, viewMatrix,