diff options
author | 2011-11-08 19:00:26 +0000 | |
---|---|---|
committer | 2011-11-08 19:00:26 +0000 | |
commit | 56c69773aea56c6c6bd47bc7e7970dd081205184 (patch) | |
tree | 8897eb8c11b991b04cb60cc9283d7c541d8217f0 /include/core | |
parent | 6245ab718dea4dfb6415e97de6e8667f4b13de38 (diff) |
Update files to use SK_BUILD_FOR_ANDROID.
This CL also removes any unecessary references to
the ANDROID definition.
Review URL: http://codereview.appspot.com/5354049
git-svn-id: http://skia.googlecode.com/svn/trunk@2629 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkCanvas.h | 2 | ||||
-rw-r--r-- | include/core/SkDevice.h | 2 | ||||
-rw-r--r-- | include/core/SkDraw.h | 2 | ||||
-rw-r--r-- | include/core/SkFontHost.h | 2 | ||||
-rw-r--r-- | include/core/SkPaint.h | 4 | ||||
-rw-r--r-- | include/core/SkPath.h | 6 | ||||
-rw-r--r-- | include/core/SkPixelRef.h | 2 | ||||
-rw-r--r-- | include/core/SkRegion.h | 2 | ||||
-rw-r--r-- | include/core/SkTRegistry.h | 2 | ||||
-rw-r--r-- | include/core/SkThread_platform.h | 2 | ||||
-rw-r--r-- | include/core/SkUtils.h | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index f7f918ee63..d22fbd6d3d 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -723,7 +723,7 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID /** Draw the text on path, with each character/glyph origin specified by the pos[] array. The origin is interpreted by the Align setting in the paint. @param text The text to be drawn diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 488a0045c8..6fe1c19340 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -220,7 +220,7 @@ protected: virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID virtual void drawPosTextOnPath(const SkDraw& draw, const void* text, size_t len, const SkPoint pos[], const SkPaint& paint, const SkPath& path, const SkMatrix* matrix); diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h index 2ea0740590..f1e126a2c5 100644 --- a/include/core/SkDraw.h +++ b/include/core/SkDraw.h @@ -55,7 +55,7 @@ public: int scalarsPerPosition, const SkPaint& paint) const; void drawTextOnPath(const char text[], size_t byteLength, const SkPath&, const SkMatrix*, const SkPaint&) const; -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID void drawPosTextOnPath(const char text[], size_t byteLength, const SkPoint pos[], const SkPaint& paint, const SkPath& path, const SkMatrix* matrix) const; diff --git a/include/core/SkFontHost.h b/include/core/SkFontHost.h index c32c3d5ae0..1b18abaa5c 100644 --- a/include/core/SkFontHost.h +++ b/include/core/SkFontHost.h @@ -278,7 +278,7 @@ public: static void SetSubpixelOrder(LCDOrder order); static LCDOrder GetSubpixelOrder(); -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID /////////////////////////////////////////////////////////////////////////// /** diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index ee9b65ca7d..eb5611bef9 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -818,7 +818,7 @@ public: void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, SkPath* path) const; -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID const SkGlyph& getUnicharMetrics(SkUnichar); const void* findImage(const SkGlyph&); @@ -854,7 +854,7 @@ private: unsigned fStyle : 2; unsigned fTextEncoding : 2; // 3 values unsigned fHinting : 2; -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID uint32_t fGenerationID; #endif diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 5982ea0e68..8eedb4655c 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -13,7 +13,7 @@ #include "SkMatrix.h" #include "SkTDArray.h" -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID #define GEN_ID_INC fGenerationID++ #define GEN_ID_PTR_INC(ptr) ptr->fGenerationID++ #else @@ -646,7 +646,7 @@ public: void flatten(SkWriter32&) const; void unflatten(SkReader32&); -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID uint32_t getGenerationID() const; #endif @@ -660,7 +660,7 @@ private: uint8_t fSegmentMask; mutable uint8_t fBoundsIsDirty; mutable uint8_t fConvexity; -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID uint32_t fGenerationID; #endif diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index e5073aff8c..7e21a43192 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -124,7 +124,7 @@ public: virtual Factory getFactory() const { return NULL; } virtual void flatten(SkFlattenableWriteBuffer&) const; -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID /** * Acquire a "global" ref on this object. * The default implementation just calls ref(), but subclasses can override diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h index 79429858d6..bbce882af6 100644 --- a/include/core/SkRegion.h +++ b/include/core/SkRegion.h @@ -283,7 +283,7 @@ public: */ bool op(const SkRegion& rgna, const SkRegion& rgnb, Op op); -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID /** Returns a new char* containing the list of rectangles in this region */ char* toString(); diff --git a/include/core/SkTRegistry.h b/include/core/SkTRegistry.h index f655a43555..34fcffd5c5 100644 --- a/include/core/SkTRegistry.h +++ b/include/core/SkTRegistry.h @@ -21,7 +21,7 @@ public: typedef T (*Factory)(P); SkTRegistry(Factory fact) { -#ifdef ANDROID +#ifdef SK_BUILD_FOR_ANDROID // work-around for double-initialization bug { SkTRegistry* reg = gHead; diff --git a/include/core/SkThread_platform.h b/include/core/SkThread_platform.h index 68c9c1fe25..2d94571061 100644 --- a/include/core/SkThread_platform.h +++ b/include/core/SkThread_platform.h @@ -10,7 +10,7 @@ #ifndef SkThread_platform_DEFINED #define SkThread_platform_DEFINED -#if defined(ANDROID) && !defined(SK_BUILD_FOR_ANDROID_NDK) +#if defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_ANDROID_NDK) #include <utils/threads.h> #include <utils/Atomic.h> diff --git a/include/core/SkUtils.h b/include/core/SkUtils.h index fb18d2075f..2e2010733f 100644 --- a/include/core/SkUtils.h +++ b/include/core/SkUtils.h @@ -32,7 +32,7 @@ void sk_memset32_portable(uint32_t dst[], uint32_t value, int count); typedef void (*SkMemset32Proc)(uint32_t dst[], uint32_t value, int count); SkMemset32Proc SkMemset32GetPlatformProc(); -#if defined(ANDROID) && !defined(SK_BUILD_FOR_ANDROID_NDK) +#if defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_ANDROID_NDK) #include "cutils/memory.h" #define sk_memset16(dst, value, count) android_memset16(dst, value, (count) << 1) |