aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkBitmapProcState.cpp2
-rw-r--r--tests/DrawBitmapRectTest.cpp5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp
index 2b0e557610..69af8b9061 100644
--- a/src/core/SkBitmapProcState.cpp
+++ b/src/core/SkBitmapProcState.cpp
@@ -150,7 +150,7 @@ bool SkBitmapProcState::possiblyScaleImage() {
simd)) {
// we failed to create fScaledBitmap, so just return and let
// the scanline proc handle it.
- return true;
+ return false;
}
fScaledCacheID = SkScaledImageCache::AddAndLock(fOrigBitmap,
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp
index 68e8a97fd5..964634ca6e 100644
--- a/tests/DrawBitmapRectTest.cpp
+++ b/tests/DrawBitmapRectTest.cpp
@@ -322,10 +322,7 @@ static void TestDrawBitmapRect(skiatest::Reporter* reporter) {
test_giantrepeat_crbug118018(reporter);
test_treatAsSprite(reporter);
-
- if (false) { // will enable when fix lands
- test_faulty_pixelref(reporter);
- }
+ test_faulty_pixelref(reporter);
}
#include "TestClassDef.h"