Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: gm/blend.cpp

Issue 1864253002: Remove conditional flavor text on blend GM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/dm_flags.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/blend.cpp
diff --git a/gm/blend.cpp b/gm/blend.cpp
index 6ecea4c8e918f73ab25647805ffc7ee5c33fd86d..b20422f113c85e134e559dc5024f82177fb1388f 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);
- }
- }
- }
}
« no previous file with comments | « no previous file | tools/dm_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698