aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcShader.cpp
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2016-04-14 11:16:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-14 11:16:44 -0700
commitd5f2e2e7429b643943d2f8a532c65e2498223b5b (patch)
treea3409cec23f0654053b9fe9b5ee8b14a23637bb1 /src/core/SkBitmapProcShader.cpp
parentbc9517375685e452144751cfdcd714a51d736a3c (diff)
Add F16 source to the linear pipelin.
Diffstat (limited to 'src/core/SkBitmapProcShader.cpp')
-rw-r--r--src/core/SkBitmapProcShader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 3b90704084..5e66bf1959 100644
--- a/src/core/SkBitmapProcShader.cpp
+++ b/src/core/SkBitmapProcShader.cpp
@@ -227,7 +227,8 @@ static bool choose_linear_pipeline(const SkShader::ContextRec& rec, const SkImag
//
if (srcInfo.colorType() != kRGBA_8888_SkColorType
&& srcInfo.colorType() != kBGRA_8888_SkColorType
- && srcInfo.colorType() != kIndex_8_SkColorType) {
+ && srcInfo.colorType() != kIndex_8_SkColorType
+ && srcInfo.colorType() != kRGBA_F16_SkColorType) {
return false;
}
@@ -280,7 +281,8 @@ SkShader::Context* SkBitmapProcShader::MakeContext(const SkShader& shader,
}
if (info->fPixmap.colorType() != kRGBA_8888_SkColorType
&& info->fPixmap.colorType() != kBGRA_8888_SkColorType
- && info->fPixmap.colorType() != kIndex_8_SkColorType) {
+ && info->fPixmap.colorType() != kIndex_8_SkColorType
+ && info->fPixmap.colorType() != kRGBA_F16_SkColorType) {
return nullptr;
}
return new (storage) LinearPipelineContext(shader, rec, info);