aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
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 /gm
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 'gm')
-rw-r--r--gm/composeshader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/composeshader.cpp b/gm/composeshader.cpp
index a6210c9240..38069939fd 100644
--- a/gm/composeshader.cpp
+++ b/gm/composeshader.cpp
@@ -243,10 +243,10 @@ DEF_SIMPLE_GM(composeshader_bitmap2, canvas, 200, 200) {
SkImageInfo imageInfo = SkImageInfo::Make(width, height,
SkColorType::kN32_SkColorType, kPremul_SkAlphaType);
skBitmap.installPixels(imageInfo, dst32Storage.begin(), width * sizeof(int32_t),
- nullptr, nullptr, nullptr);
+ nullptr, nullptr);
imageInfo = SkImageInfo::Make(width, height,
SkColorType::kAlpha_8_SkColorType, kPremul_SkAlphaType);
- skMask.installPixels(imageInfo, dst8Storage.begin(), width, nullptr, nullptr, nullptr);
+ skMask.installPixels(imageInfo, dst8Storage.begin(), width, nullptr, nullptr);
sk_sp<SkImage> skSrc = SkImage::MakeFromBitmap(skBitmap);
sk_sp<SkImage> skMaskImage = SkImage::MakeFromBitmap(skMask);
paint.setShader(