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

Unified Diff: src/core/SkBitmapProcState.cpp

Issue 22801016: Implement highQualityFilter16 so GM doesn't crash when you give it resources. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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/core/SkBitmapProcState.cpp
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp
index b48f8384c92f686aec2406978c35d1352f139062..390582d161bb401dd4390b123b0e0310c93c2822 100644
--- a/src/core/SkBitmapProcState.cpp
+++ b/src/core/SkBitmapProcState.cpp
@@ -376,8 +376,7 @@ bool SkBitmapProcState::chooseProcs(const SkMatrix& inv, const SkPaint& paint) {
SkASSERT(fInvType > SkMatrix::kTranslate_Mask);
- fShaderProc32 = this->chooseBitmapFilterProc();
- if (!fShaderProc32) {
+ if (!this->setBitmapFilterProcs()) {
fFilterLevel = SkPaint::kLow_FilterLevel;
}
}
@@ -404,7 +403,7 @@ bool SkBitmapProcState::chooseProcs(const SkMatrix& inv, const SkPaint& paint) {
// No need to do this if we're doing HQ sampling; if filter quality is
// still set to HQ by the time we get here, then we must have installed
- // the shader proc above and can skip all this.
+ // the shader procs above and can skip all this.
if (fFilterLevel < SkPaint::kHigh_FilterLevel) {

Powered by Google App Engine
This is Rietveld 408576698