diff options
author | 2014-08-12 17:14:57 -0700 | |
---|---|---|
committer | 2014-08-12 17:14:57 -0700 | |
commit | cc03adb90901d226e8b0252a187b19a68fabcc42 (patch) | |
tree | a9819f8092333085469e8fe63097d6b3b6f0c486 /gyp | |
parent | dc065f2c20869e92254a901f00f404d64f05bab7 (diff) |
Proposal for the mesh gradient interface. Implemented as a grid of
patches and uses 4 private arrays to store the values of the control points and
colors. When it needs a patch at a certain position of the grid it just
builds it using the corresponding values of the array and the
grid coordinates provided. Details on implementation are documented in the corresponding classes' comments.
Also added a gm for mesh gradients.
BUG=skia:
R=egdaniel@google.com, reed@google.com
Author: dandov@google.com
Review URL: https://codereview.chromium.org/451723003
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/gmslides.gypi | 1 | ||||
-rw-r--r-- | gyp/utils.gypi | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gyp/gmslides.gypi b/gyp/gmslides.gypi index e1cb1a6fd8..c1f527f517 100644 --- a/gyp/gmslides.gypi +++ b/gyp/gmslides.gypi @@ -127,6 +127,7 @@ '../gm/optimizations.cpp', '../gm/ovals.cpp', '../gm/patch.cpp', + '../gm/patchgrid.cpp', '../gm/patheffects.cpp', '../gm/pathfill.cpp', '../gm/pathinterior.cpp', diff --git a/gyp/utils.gypi b/gyp/utils.gypi index b033573dd9..9156b847c8 100644 --- a/gyp/utils.gypi +++ b/gyp/utils.gypi @@ -78,6 +78,8 @@ '<(skia_src_path)/utils/SkParseColor.cpp', '<(skia_src_path)/utils/SkParsePath.cpp', '<(skia_src_path)/utils/SkPictureUtils.cpp', + '<(skia_src_path)/utils/SkPatchGrid.cpp', + '<(skia_src_path)/utils/SkPatchGrid.h', '<(skia_src_path)/utils/SkPatchUtils.cpp', '<(skia_src_path)/utils/SkPatchUtils.h', '<(skia_src_path)/utils/SkPathUtils.cpp', |