From bb98807a9a02751ed2fcc98376f323ad93e15fa4 Mon Sep 17 00:00:00 2001 From: Wei-Ta Chen Date: Fri, 3 Sep 2010 18:51:09 +0800 Subject: Rename SkLargeBitmap to SkBitmapRegionDecoder (the previous renaming was reverted). The change is identical to https://android-git.corp.google.com/g/#change,64714 . Change-Id: If0136fcc96bcdab323607b701e2ef69ddf42f63d --- include/images/SkBitmapRegionDecoder.h | 33 +++++++++++++++++++++++++++++++++ include/images/SkLargeBitmap.h | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) create mode 100644 include/images/SkBitmapRegionDecoder.h delete mode 100644 include/images/SkLargeBitmap.h (limited to 'include') diff --git a/include/images/SkBitmapRegionDecoder.h b/include/images/SkBitmapRegionDecoder.h new file mode 100644 index 0000000..5b35371 --- /dev/null +++ b/include/images/SkBitmapRegionDecoder.h @@ -0,0 +1,33 @@ +#ifndef SkBitmapRegionDecoder_DEFINED +#define SkBitmapRegionDecoder_DEFINED + +#include "SkBitmap.h" +#include "SkRect.h" +#include "SkImageDecoder.h" + +class SkBitmapRegionDecoder { +public: + SkBitmapRegionDecoder(SkImageDecoder *decoder, int width, int height) { + fDecoder = decoder; + fWidth = width; + fHeight = height; + } + virtual ~SkBitmapRegionDecoder() { + delete fDecoder; + } + + virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect, + SkBitmap::Config pref, int sampleSize); + + virtual int getWidth() { return fWidth; } + virtual int getHeight() { return fHeight; } + + virtual SkImageDecoder* getDecoder() { return fDecoder; } + +private: + SkImageDecoder *fDecoder; + int fWidth; + int fHeight; +}; + +#endif diff --git a/include/images/SkLargeBitmap.h b/include/images/SkLargeBitmap.h deleted file mode 100644 index 0d19f32..0000000 --- a/include/images/SkLargeBitmap.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef SkLargeBitmap_DEFINED -#define SkLargeBitmap_DEFINED - -#include "SkBitmap.h" -#include "SkRect.h" -#include "SkImageDecoder.h" - -class SkLargeBitmap { -public: - SkLargeBitmap(SkImageDecoder *decoder, int width, int height) { - fDecoder = decoder; - fWidth = width; - fHeight = height; - } - virtual ~SkLargeBitmap() { - delete fDecoder; - } - - virtual bool decodeRegion(SkBitmap* bitmap, SkIRect rect, - SkBitmap::Config pref, int sampleSize); - - virtual int getWidth() { return fWidth; } - virtual int getHeight() { return fHeight; } - - virtual SkImageDecoder* getDecoder() { return fDecoder; } - -private: - SkImageDecoder *fDecoder; - int fWidth; - int fHeight; -}; - -#endif -- cgit v1.1