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

Unified Diff: src/core/SkBlitter_Sprite.cpp

Issue 173893002: use colortype instead of config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « src/core/SkBlitter.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter_Sprite.cpp
diff --git a/src/core/SkBlitter_Sprite.cpp b/src/core/SkBlitter_Sprite.cpp
index 9322e203967376fdb5b20654f5223c3fdc1ea1a7..86251ff59f501fe064c3c59f9208990970f82bb1 100644
--- a/src/core/SkBlitter_Sprite.cpp
+++ b/src/core/SkBlitter_Sprite.cpp
@@ -66,12 +66,12 @@ SkBlitter* SkBlitter::ChooseSprite( const SkBitmap& device,
SkSpriteBlitter* blitter;
- switch (device.config()) {
- case SkBitmap::kRGB_565_Config:
+ switch (device.colorType()) {
+ case kRGB_565_SkColorType:
blitter = SkSpriteBlitter::ChooseD16(source, paint, storage,
storageSize);
break;
- case SkBitmap::kARGB_8888_Config:
+ case kPMColor_SkColorType:
blitter = SkSpriteBlitter::ChooseD32(source, paint, storage,
storageSize);
break;
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698