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

Unified Diff: src/utils/SkTextureCompressor.cpp

Issue 338493005: stop using SkBitmap::Config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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: src/utils/SkTextureCompressor.cpp
diff --git a/src/utils/SkTextureCompressor.cpp b/src/utils/SkTextureCompressor.cpp
index 5ef1ae39fcebe31f8c4b96f98c15e019b4e1fb4d..fb41928269be4b98e006c83d702d25d6cd291849 100644
--- a/src/utils/SkTextureCompressor.cpp
+++ b/src/utils/SkTextureCompressor.cpp
@@ -197,7 +197,7 @@ SkData *CompressBitmapToFormat(const SkBitmap &bitmap, Format format) {
memset(kProcMap, 0, sizeof(kProcMap));
// Map available bitmap configs to compression functions
- kProcMap[SkBitmap::kA8_Config][kLATC_Format] = compress_a8_to_latc;
+ kProcMap[kAlpha_8_SkColorType][kLATC_Format] = compress_a8_to_latc;
CompressBitmapProc proc = kProcMap[bitmap.colorType()][format];
if (NULL != proc) {

Powered by Google App Engine
This is Rietveld 408576698