Add support for linear gradients, implemented as skia shaders.
I had to complicate the IDL bindings generation to allow passing an array of colors. Without these changes, we'd try to convert the dart object to Vector<SkColor>, which C++ thinks is Vector<unsigned>, and we'd use the wrong converter. So I added some template grease to force it to use a Vector<CanvasColor> converter. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1152963009
Showing
engine/core/painting/Gradient.idl
0 → 100644
engine/core/painting/Shader.cpp
0 → 100644
engine/core/painting/Shader.h
0 → 100644
engine/core/painting/Shader.idl
0 → 100644
想要评论请 注册 或 登录