From 6293820c96ac1cf6f33377fb510549bf6a4f9ed6 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Wed, 10 Oct 2012 18:29:31 +0000 Subject: Disable transitions for the Android SampleApp. Review URL: https://codereview.appspot.com/6642063 git-svn-id: http://skia.googlecode.com/svn/trunk@5887 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/TransitionView.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'samplecode/TransitionView.cpp') diff --git a/samplecode/TransitionView.cpp b/samplecode/TransitionView.cpp index e755288062..4f15bd310a 100644 --- a/samplecode/TransitionView.cpp +++ b/samplecode/TransitionView.cpp @@ -189,5 +189,10 @@ private: }; SkView* create_transition(SkView* prev, SkView* next, int direction) { +#ifdef SK_BUILD_FOR_ANDROID + // Disable transitions for Android + return next; +#else return SkNEW_ARGS(TransitionView, (prev, next, direction)); +#endif } -- cgit v1.2.3