aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkImageTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-07-30 20:13:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-30 20:13:43 -0700
commit02d91d187324cd0f014a78eab1ca09ec71a9b356 (patch)
treec085e690e185f22732146c4ce4837230a6e1e3a5 /tests/SkImageTest.cpp
parent4ed3dd613e03ff2188c5061d07e9502cf040a2b1 (diff)
lock pixels in image when bitmap is immutable and not-lazy
Diffstat (limited to 'tests/SkImageTest.cpp')
-rw-r--r--tests/SkImageTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SkImageTest.cpp b/tests/SkImageTest.cpp
index d5c7eaa819..fabc1fd146 100644
--- a/tests/SkImageTest.cpp
+++ b/tests/SkImageTest.cpp
@@ -26,7 +26,7 @@ DEF_TEST(SkImageFromBitmap_extractSubset, reporter) {
canvas.drawIRect(r, p);
SkBitmap dstBitmap;
srcBitmap.extractSubset(&dstBitmap, r);
- image.reset(SkNewImageFromRasterBitmap(dstBitmap, NULL, kUnlocked_SharedPixelRefMode));
+ image.reset(SkImage::NewFromBitmap(dstBitmap));
}
SkBitmap tgt;