aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/gmslides.gypi
diff options
context:
space:
mode:
authorGravatar dandov <dandov@google.com>2014-07-25 10:44:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-25 10:44:54 -0700
commit50d715476b1d3a00fb43c13e34a80ea0a01d32bf (patch)
treee315f425dee5580112df9ded12da2e256b9e126f /gyp/gmslides.gypi
parent75e62ea9d6d99ff06133d95c3451b698dff52a55 (diff)
Added classes SkPatch and SkPatchMesh which help encapsulate and generalize this new primitive. The functionality and responsability of each class is better explained in the comments of the files.
Each patch defines a method genMesh that produces the geometry to draw. To do this they receive a SkPatchMesh object which they need to initialize in order to set up how the data is going to be formatted. Later they call function like setColor or pointAt to set the values at a specific index, the SkMeshPatch object handles the indices based on the format and makes it transparent to the client. Added a slide to sample app to show how to set up this classes and how they interact. BUG=skia: R=jvanverth@google.com, egdaniel@google.com, bsalomon@google.com Author: dandov@google.com Review URL: https://codereview.chromium.org/405163003
Diffstat (limited to 'gyp/gmslides.gypi')
-rw-r--r--gyp/gmslides.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/gmslides.gypi b/gyp/gmslides.gypi
index 1ee27fda8c..b9563511a4 100644
--- a/gyp/gmslides.gypi
+++ b/gyp/gmslides.gypi
@@ -122,6 +122,7 @@
'../gm/offsetimagefilter.cpp',
'../gm/optimizations.cpp',
'../gm/ovals.cpp',
+ '../gm/patch.cpp',
'../gm/patheffects.cpp',
'../gm/pathfill.cpp',
'../gm/pathinterior.cpp',