aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/textblobblockreordering.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 /gm/textblobblockreordering.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 'gm/textblobblockreordering.cpp')
-rw-r--r--gm/textblobblockreordering.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gm/textblobblockreordering.cpp b/gm/textblobblockreordering.cpp
index c581e135a6..b1658f84d1 100644
--- a/gm/textblobblockreordering.cpp
+++ b/gm/textblobblockreordering.cpp
@@ -46,9 +46,9 @@ protected:
return SkISize::Make(kWidth, kHeight);
}
- // This draws the same text blob 3 times. The second draw used a different
- // xfer mode so it doens't get batched with the first and third.
- // ultimately thye iwll be flushed in the order first, third, and then second
+ // This draws the same text blob 3 times. The second draw used a different xfer mode so its
+ // GrDrawOp doesn't get combined with the first and third. Ultimately, they will be flushed in
+ // the order first, third, and then second.
void onDraw(SkCanvas* canvas) override {
canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY));
@@ -63,8 +63,7 @@ protected:
canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta));
- // draw a rect where the text should be, and then twiddle the xfermode
- // so we don't batch
+ // Draw a rect where the text should be, and then twiddle the xfermode so we don't combine.
SkPaint redPaint;
redPaint.setColor(SK_ColorRED);
canvas->drawRect(bounds, redPaint);