From f2b98d67dcb6fcb3120feede9c72016fc7b3ead8 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Mon, 20 Dec 2010 18:26:13 +0000 Subject: merge with changes for GPU backend git-svn-id: http://skia.googlecode.com/svn/trunk@637 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleCode.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'samplecode/SampleCode.h') diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h index c901af3c39..058985a13f 100644 --- a/samplecode/SampleCode.h +++ b/samplecode/SampleCode.h @@ -2,16 +2,24 @@ #define SampleCode_DEFINED #include "SkEvent.h" +#include "SkKey.h" class SampleCode { public: + static bool KeyQ(const SkEvent&, SkKey* outKey); + static bool CharQ(const SkEvent&, SkUnichar* outUni); + static bool TitleQ(const SkEvent&); static void TitleR(SkEvent*, const char title[]); static bool PrefSizeQ(const SkEvent&); static void PrefSizeR(SkEvent*, SkScalar width, SkScalar height); - + + static bool FastTextQ(const SkEvent&); + static SkMSec GetAnimTime(); + static SkMSec GetAnimTimeDelta(); + static SkScalar GetAnimSecondsDelta(); static SkScalar GetAnimScalar(SkScalar speedPerSec, SkScalar period = 0); }; -- cgit v1.2.3