From 09d994ecb30de2e62a31af2c16307af31fe0e0b3 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 21 Dec 2016 11:14:46 -0500 Subject: Misc batch->op cleanup Part 1 of 2 Change-Id: I80f951976558a284e55386e0a368f08bd835d8ca Reviewed-on: https://skia-review.googlesource.com/6359 Commit-Queue: Brian Salomon Reviewed-by: Brian Osman --- samplecode/SampleManyRects.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'samplecode/SampleManyRects.cpp') diff --git a/samplecode/SampleManyRects.cpp b/samplecode/SampleManyRects.cpp index b5eb6b00bf..66274a483a 100644 --- a/samplecode/SampleManyRects.cpp +++ b/samplecode/SampleManyRects.cpp @@ -12,7 +12,7 @@ #include "SkView.h" /** - * Animated sample used to develop batched rect implementation in GrBufferedDrawTarget. + * Animated sample used to develop a predecessor of GrDrawOp combining. */ class ManyRectsView : public SampleView { private: @@ -44,8 +44,7 @@ protected: canvas->save(); canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); - // Rotation messes up the GPU batching because of the clip below. We don't notice - // that the rect is inside the clip so the clip changes interrupt batching. + // Uncomment to test rotated rect draw combining. if (false) { SkMatrix rotate; rotate.setRotate(fRandom.nextUScalar1() * 360, @@ -54,7 +53,7 @@ protected: canvas->concat(rotate); } SkRect clipRect = rect; - // This clip will always contain the entire rect. It's here to give the GPU batching + // This clip will always contain the entire rect. It's here to give the GPU op combining // code a little more challenge. clipRect.outset(10, 10); canvas->clipRect(clipRect); -- cgit v1.2.3