aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/android
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-07-18 10:53:11 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-18 15:50:43 +0000
commit086a427b0cee3862f25c492fc5082ff24105dc53 (patch)
tree79d4311c12309e5bc34950a0131771d3cb8f6171 /src/android
parent918ad9d5f19efdbd57486b8f931f7af197896010 (diff)
guard references to SkColorTable
Bug: skia:6828 Change-Id: I0c8c78e70b118f51cb59dc45675e4ddcd4776108 Reviewed-on: https://skia-review.googlesource.com/24260 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/android')
-rw-r--r--src/android/SkBitmapRegionCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/SkBitmapRegionCodec.cpp b/src/android/SkBitmapRegionCodec.cpp
index 8944951d96..e2ab423d27 100644
--- a/src/android/SkBitmapRegionCodec.cpp
+++ b/src/android/SkBitmapRegionCodec.cpp
@@ -82,7 +82,7 @@ bool SkBitmapRegionCodec::decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocat
outInfo = outInfo.makeColorType(kAlpha_8_SkColorType).makeAlphaType(kPremul_SkAlphaType);
}
bitmap->setInfo(outInfo);
- if (!bitmap->tryAllocPixels(allocator, nullptr)) {
+ if (!bitmap->tryAllocPixels(allocator)) {
SkCodecPrintf("Error: Could not allocate pixels.\n");
return false;
}