diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-25 20:32:12 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-25 20:32:12 +0000 |
commit | 6eb0d62cc31463b5af4cbed5c3058a3161c58d2d (patch) | |
tree | a84995b65d91a707f56b909ccc3731ff4b963195 /samplecode | |
parent | 5b2e01c0d223b7d3c9e5a84a709de7629dd7cfd6 (diff) |
Register some flattenable factories.
Now, SkComposeShaders, SkDiscreteMapper, SkCosineMapper,
Line2DPathEffect, and SkTransparentShader can be flattened
and unflattened. This makes more of our samples work when
using a pipe.
Review URL: https://codereview.appspot.com/6338064
git-svn-id: http://skia.googlecode.com/svn/trunk@4334 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleAll.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index 201dfe7a2d..303059be42 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -250,6 +250,8 @@ private: typedef Sk2DPathEffect INHERITED; }; +SK_DEFINE_FLATTENABLE_REGISTRAR(Line2DPathEffect) + static void r9(SkLayerRasterizer* rast, SkPaint& p) { rast->addLayer(p); |