From 6f25297d93ed7fb29264cd072ad15ec25d1e27e7 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Wed, 14 Jan 2009 16:46:16 +0000 Subject: fix multiple warnings (e.g. hidden virtuals, unused static functions) update freetype version-check for const git-svn-id: http://skia.googlecode.com/svn/trunk@66 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkColorPriv.h | 8 ++++---- include/core/SkMMapStream.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/core/SkColorPriv.h b/include/core/SkColorPriv.h index 041c0380a0..4d41374d2b 100644 --- a/include/core/SkColorPriv.h +++ b/include/core/SkColorPriv.h @@ -402,7 +402,7 @@ typedef uint16_t SkPMColor16; #define SkG32To4444(g) ((unsigned)(g) >> 4) #define SkB32To4444(b) ((unsigned)(b) >> 4) -static U8CPU SkReplicateNibble(unsigned nib) +static inline U8CPU SkReplicateNibble(unsigned nib) { SkASSERT(nib <= 0xF); return (nib << 4) | nib; @@ -618,7 +618,7 @@ static inline SkPMColor16 SkDitherPixel32To4444(SkPMColor c) Transforms a normal ARGB_8888 into the same byte order as expanded ARGB_4444, but keeps each component 8bits */ -static uint32_t SkExpand_8888(SkPMColor c) +static inline uint32_t SkExpand_8888(SkPMColor c) { return (((c >> SK_R32_SHIFT) & 0xFF) << 24) | (((c >> SK_G32_SHIFT) & 0xFF) << 8) | @@ -629,7 +629,7 @@ static uint32_t SkExpand_8888(SkPMColor c) /* Undo the operation of SkExpand_8888, turning the argument back into a SkPMColor. */ -static SkPMColor SkCompact_8888(uint32_t c) +static inline SkPMColor SkCompact_8888(uint32_t c) { return (((c >> 24) & 0xFF) << SK_R32_SHIFT) | (((c >> 8) & 0xFF) << SK_G32_SHIFT) | @@ -641,7 +641,7 @@ static SkPMColor SkCompact_8888(uint32_t c) but this routine just keeps the high 4bits of each component in the low 4bits of the result (just like a newly expanded PMColor16). */ -static uint32_t SkExpand32_4444(SkPMColor c) +static inline uint32_t SkExpand32_4444(SkPMColor c) { return (((c >> (SK_R32_SHIFT + 4)) & 0xF) << 24) | (((c >> (SK_G32_SHIFT + 4)) & 0xF) << 8) | diff --git a/include/core/SkMMapStream.h b/include/core/SkMMapStream.h index 600c6212f7..be063bd3e7 100644 --- a/include/core/SkMMapStream.h +++ b/include/core/SkMMapStream.h @@ -24,7 +24,7 @@ public: SkMMAPStream(const char filename[]); virtual ~SkMMAPStream(); - virtual void setMemory(const void* data, size_t length); + virtual void setMemory(const void* data, size_t length, bool); private: int fFildes; void* fAddr; -- cgit v1.2.3