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

Unified Diff: bench/TileBench.cpp

Issue 25275004: store SkAlphaType inside SkBitmap, on road to support unpremul (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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
Index: bench/TileBench.cpp
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp
index 60312a3d56cb06b8141953da66e729d96f9f8bea..03a758cdea03bcd83c4c638e994bd9d1fb053426 100644
--- a/bench/TileBench.cpp
+++ b/bench/TileBench.cpp
@@ -48,11 +48,10 @@ public:
, fDoScale(doScale) {
SkBitmap bm;
- bm.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight);
-
+ bm.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight, 0,
+ kOpaque_SkAlphaType);
bm.allocPixels();
bm.eraseColor(SK_ColorWHITE);
- bm.setIsOpaque(true);
create_gradient(&bm);
« no previous file with comments | « bench/RepeatTileBench.cpp ('k') | gm/bleed.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698