aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPathEffect.h
diff options
context:
space:
mode:
authorGravatar tomhudson <tomhudson@google.com>2015-03-05 08:01:07 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-05 08:01:07 -0800
commit64de1e179012302d5f3b805d0736a583ad91c6a2 (patch)
treef4107a443d6f9453ea1cae1c7ed154fe2b07a05c /include/core/SkPathEffect.h
parent2dd3b6647dc726f36fd8774b3d0d2e83b493aeac (diff)
ViaAndroidSDK for DM
Make a Via for DM which transforms a set of draws to be more like what we'd see through the Android Framework's HWUI API. Only built inside Android's framework because we depend on HWUI classes for half of those transformations. Tested with --config androidsdk-8888 and --config androidsdk-hwui. R=djsollen@google.com,mtklein@google.com,reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/974913002
Diffstat (limited to 'include/core/SkPathEffect.h')
-rw-r--r--include/core/SkPathEffect.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/core/SkPathEffect.h b/include/core/SkPathEffect.h
index c4d4183981..7e2d1ae6a4 100644
--- a/include/core/SkPathEffect.h
+++ b/include/core/SkPathEffect.h
@@ -134,6 +134,11 @@ public:
SK_TO_STRING_PUREVIRT()
SK_DEFINE_FLATTENABLE_TYPE(SkPathEffect)
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ /// Override for subclasses as appropriate.
+ virtual bool exposedInAndroidJavaAPI() const { return false; }
+#endif
+
protected:
SkPathEffect() {}
@@ -191,6 +196,10 @@ public:
SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkComposePathEffect)
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ bool exposedInAndroidJavaAPI() const SK_OVERRIDE { return true; }
+#endif
+
protected:
SkComposePathEffect(SkPathEffect* outer, SkPathEffect* inner) : INHERITED(outer, inner) {}
@@ -224,6 +233,10 @@ public:
SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSumPathEffect)
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ bool exposedInAndroidJavaAPI() const SK_OVERRIDE { return true; }
+#endif
+
protected:
SkSumPathEffect(SkPathEffect* first, SkPathEffect* second) : INHERITED(first, second) {}