Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: src/core/SkBitmapProcShader.cpp

Issue 1882893003: Add F16 source to the linear pipelin. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix think-o for Half name. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | src/core/SkLinearBitmapPipeline_sample.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcShader.cpp
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 3b90704084884b99f6001adc27245723dfeb6978..5e66bf1959e0638b519ce320b1905347176fd624 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);
« no previous file with comments | « no previous file | src/core/SkLinearBitmapPipeline.cpp » ('j') | src/core/SkLinearBitmapPipeline_sample.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698