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

Unified Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 305133006: use colortype instead of config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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/effects/SkAlphaThresholdFilter.cpp
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 205e9a9516058f946279ea35b486b352f0bcd7e5..c19083e12d1ea9968ce50e75fdf35aeff6f629ea 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -323,8 +323,7 @@ bool SkAlphaThresholdFilterImpl::onFilterImage(Proxy*, const SkBitmap& src,
return false;
}
robertphillips 2014/06/02 13:15:59 This seems odd. Why not just "allocPixels(src.info
reed1 2014/06/02 19:43:06 Ah, right, I didn't see that src == src... :(
- dst->setConfig(src.config(), src.width(), src.height());
- if (!dst->allocPixels()) {
+ if (!dst->allocPixels(src.info().makeWH(src.width(), src.height()))) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698