aboutsummaryrefslogtreecommitdiffhomepage
path: root/android_sample/SampleApp/Android.mk
diff options
context:
space:
mode:
authorGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-16 15:31:26 +0000
committerGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-16 15:31:26 +0000
commit3e7ff9f31daedefd5431e724b94cebbd15d9ac21 (patch)
tree1283a6310fcbaaf40662a56237f3ec35cf0018f7 /android_sample/SampleApp/Android.mk
parent6c4cd265e368531f6c73f4bbb0cf073d3899e10c (diff)
Better fix for changing the viewport in sample app.
Create a platform description and base the size on the SkWindow in order to create a RenderTarget, which results in changing the viewport. This allows us to use only GR calls. In the Android sample app, fix the problem where nothing is drawn in the first frame, and default to drawing in GL. Reviewed at http://codereview.appspot.com/4642043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1615 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'android_sample/SampleApp/Android.mk')
-rw-r--r--android_sample/SampleApp/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/android_sample/SampleApp/Android.mk b/android_sample/SampleApp/Android.mk
index f2fd860684..6054235283 100644
--- a/android_sample/SampleApp/Android.mk
+++ b/android_sample/SampleApp/Android.mk
@@ -52,6 +52,8 @@ LOCAL_SHARED_LIBRARIES := \
LOCAL_STATIC_LIBRARIES := \
libskiagpu
+LOCAL_CFLAGS += -DDEFAULT_TO_GPU
+
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libskia-sample