aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleManyRects.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-12-21 11:14:46 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-21 16:45:40 +0000
commit09d994ecb30de2e62a31af2c16307af31fe0e0b3 (patch)
treecc6a7b93803eb79c4061f400fc71025175e07674 /samplecode/SampleManyRects.cpp
parentd5c5ed556c40f442eec96e071727de1cb07faf58 (diff)
Misc batch->op cleanup Part 1 of 2
Change-Id: I80f951976558a284e55386e0a368f08bd835d8ca Reviewed-on: https://skia-review.googlesource.com/6359 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'samplecode/SampleManyRects.cpp')
-rw-r--r--samplecode/SampleManyRects.cpp7
1 files changed, 3 insertions, 4 deletions
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);