aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
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 /dm/DM.cpp
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 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 24808cf33a..f9c2ff776f 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -259,6 +259,11 @@ static Sink* create_via(const char* tag, Sink* wrapped) {
VIA("matrix", ViaMatrix, m, wrapped);
VIA("upright", ViaUpright, m, wrapped);
}
+
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ VIA("androidsdk", ViaAndroidSDK, wrapped);
+#endif
+
#undef VIA
return NULL;
}