TBR=robertphillips@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/
196413009
git-svn-id: http://skia.googlecode.com/svn/trunk@13780
2bbb7eff-a529-9590-31e7-
b0007b416f81
#include "SkPoint.h"
#include "SkRefCnt.h"
-//#define SK_SUPPORT_LEGACY_COPYTO_CONFIG
-
struct SkMask;
struct SkIRect;
struct SkRect;
*/
bool extractSubset(SkBitmap* dst, const SkIRect& subset) const;
-#ifdef SK_SUPPORT_LEGACY_COPYTO_CONFIG
- bool copyTo(SkBitmap* dst, Config c, Allocator* allocator = NULL) const;
- bool canCopyTo(Config newConfig) const;
-#endif
/** Makes a deep copy of this bitmap, respecting the requested colorType,
* and allocating the dst pixels on the cpu.
* Returns false if either there is an error (i.e. the src does not have
#include "SkCanvas.h"
#include "SkPaint.h"
-#ifdef SK_SUPPORT_LEGACY_COPYTO_CONFIG
-bool SkBitmap::copyTo(SkBitmap* dst, Config c, Allocator* allocator) const {
- return this->copyTo(dst, SkBitmapConfigToColorType(c), allocator);
-}
-
-bool SkBitmap::canCopyTo(Config newConfig) const {
- return this->canCopyTo(SkBitmapConfigToColorType(newConfig));
-}
-#endif
-
bool SkBitmap::canCopyTo(SkColorType dstColorType) const {
if (this->colorType() == kUnknown_SkColorType) {
return false;