aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-04-06 12:42:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-06 12:42:49 -0700
commit3d72c099c7341291e869099ef6c6600856ff24f8 (patch)
treef786585c0a4658ead2a2cc57982a6dad852696c7 /gm
parent083b869f50d4bceea6f3088e1db2bb815de7549b (diff)
Remove conditional flavor text on blend GM.
This was breaking replay modes for no good reason. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864253002 Review URL: https://codereview.chromium.org/1864253002
Diffstat (limited to 'gm')
-rw-r--r--gm/blend.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/gm/blend.cpp b/gm/blend.cpp
index 6ecea4c8e9..b20422f113 100644
--- a/gm/blend.cpp
+++ b/gm/blend.cpp
@@ -33,17 +33,4 @@ DEF_SIMPLE_GM(blend, canvas, 300, 100) {
canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
canvas->restore();
canvas->restore();
-
- // Print out the colors in each block (if we're looking at 8888 raster).
- if (canvas->imageInfo().colorType() == kN32_SkColorType) {
- SkPixmap pmap;
- if (const SkPMColor* px = canvas->peekPixels(&pmap) ? pmap.addr32() : nullptr) {
- p.setColor(SK_ColorWHITE);
- for (int i = 0; i < 3; i++) {
- SkPMColor c = px[i * 100];
- SkString text = SkStringPrintf("0x%08x", c);
- canvas->drawText(text.c_str(), text.size(), i * 100.0f + 20.0f, 50.0f, p);
- }
- }
- }
}