Do not support index8 for generateScaledPixels
authorLeon Scroggins III <scroggo@google.com>
Thu, 22 Dec 2016 14:53:21 +0000 (09:53 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 22 Dec 2016 15:30:50 +0000 (15:30 +0000)
commit9be9a42c928a1093a3130f79e71ef55a4e770a9e
tree3503618c11004d6a0d11afc32087ecb69587ed4f
parentd5733c70df5baada798eb166db7cac2cefa0479a
Do not support index8 for generateScaledPixels

Since the in/out parameter is a const SkPixmap without the proper
color table, there is no way to tell the client about it without
modifying the const SkPixmap. Rather than cheating, just return
false.

Change-Id: I63fdf57febc59e1ee9af13aa6eb9b253d19bcb17
Reviewed-on: https://skia-review.googlesource.com/6414
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
gm/codec_scaled.cpp
src/codec/SkCodecImageGenerator.cpp