Commit 9410527e authored by Ethan Nicholas's avatar Ethan Nicholas Committed by Commit Bot

Removed 'in' from Skia runtime color filter.

The Skia shading language has changed slightly, necessitating the
removal of 'in' from the uniforms in this code. See the comment at
GrSkSLFP.h:41 for an explanation of how 'in' and 'uniform' work in
runtime shaders now.

Change-Id: I9cfef99f51cfb2c7cd37b284b2506dd261d8e87d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827998
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702101}
parent 23cdefb6
...@@ -1552,8 +1552,8 @@ sk_sp<SkColorFilter> SkiaRenderer::GetColorFilter(const gfx::ColorSpace& src, ...@@ -1552,8 +1552,8 @@ sk_sp<SkColorFilter> SkiaRenderer::GetColorFilter(const gfx::ColorSpace& src,
return nullptr; return nullptr;
const char* hdr = R"( const char* hdr = R"(
layout(ctype=float) in uniform half offset; layout(ctype=float) uniform half offset;
layout(ctype=float) in uniform half multiplier; layout(ctype=float) uniform half multiplier;
void main(inout half4 color) { void main(inout half4 color) {
// un-premultiply alpha // un-premultiply alpha
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment