571b30f611
Original change's description: > > Remove support for decoding to kIndex_8 > > > > Fix up callsites, and remove tests that no longer make sense. > > > > Bug: skia:6828 > > Change-Id: I2548c4b7528b7b1be7412563156f27b52c9d4295 > > Reviewed-on: https://skia-review.googlesource.com/21664 > > Reviewed-by: Derek Sollenberger <djsollen@google.com> > > Commit-Queue: Leon Scroggins <scroggo@google.com> > > TBR=djsollen@google.com,scroggo@google.com > > Change-Id: I1bc669441f250690884e75a9a61427fdf75c6907 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia:6828 > Reviewed-on: https://skia-review.googlesource.com/22120 > Reviewed-by: Leon Scroggins <scroggo@google.com> > Commit-Queue: Leon Scroggins <scroggo@google.com> TBR=djsollen@google.com,scroggo@google.com Bug: skia:6828 Change-Id: I36ff5a11c529d29e8adc95f43b8edc6fd1dbf5b8 Reviewed-on: https://skia-review.googlesource.com/22320 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef CodecBenchPriv_DEFINED
|
|
#define CodecBenchPriv_DEFINED
|
|
|
|
#include "SkImageInfo.h"
|
|
|
|
inline const char* color_type_to_str(SkColorType colorType) {
|
|
switch (colorType) {
|
|
case kN32_SkColorType:
|
|
return "N32";
|
|
case kRGB_565_SkColorType:
|
|
return "565";
|
|
case kGray_8_SkColorType:
|
|
return "Gray8";
|
|
case kIndex_8_SkColorType:
|
|
SkASSERT(false);
|
|
return "Index8";
|
|
case kAlpha_8_SkColorType:
|
|
return "Alpha8";
|
|
default:
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
inline const char* alpha_type_to_str(SkAlphaType alphaType) {
|
|
switch (alphaType) {
|
|
case kOpaque_SkAlphaType:
|
|
return "";
|
|
case kPremul_SkAlphaType:
|
|
return "Premul";
|
|
case kUnpremul_SkAlphaType:
|
|
return "Unpremul";
|
|
default:
|
|
SkASSERT(false);
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
#endif // CodecBenchPriv_DEFINED
|