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

Unified Diff: bench/BitmapScaleBench.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/BitmapScaleBench.cpp
diff --git a/bench/BitmapScaleBench.cpp b/bench/BitmapScaleBench.cpp
index cc2a33a894944eee279214c94d86412c47df10ec..ae3df71c22da5c4648415e4b3b8d3bcf146374a3 100644
--- a/bench/BitmapScaleBench.cpp
+++ b/bench/BitmapScaleBench.cpp
@@ -57,14 +57,14 @@ protected:
}
virtual void onPreDraw() {
- fInputBitmap.setConfig(SkBitmap::kARGB_8888_Config, fInputSize, fInputSize);
+ fInputBitmap.setConfig(SkBitmap::kARGB_8888_Config,
+ fInputSize, fInputSize, 0, kOpaque_SkAlphaType);
fInputBitmap.allocPixels();
fInputBitmap.eraseColor(SK_ColorWHITE);
- fInputBitmap.setIsOpaque(true);
- fOutputBitmap.setConfig(SkBitmap::kARGB_8888_Config, fOutputSize, fOutputSize);
+ fOutputBitmap.setConfig(SkBitmap::kARGB_8888_Config,
+ fOutputSize, fOutputSize, 0, kOpaque_SkAlphaType);
fOutputBitmap.allocPixels();
- fOutputBitmap.setIsOpaque(true);
fMatrix.setScale( scale(), scale() );
}
« no previous file with comments | « bench/BitmapRectBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698