Clean up our callers who depend on the deprecated function.
R=scroggo@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/
178003003
git-svn-id: http://skia.googlecode.com/svn/trunk@13566
2bbb7eff-a529-9590-31e7-
b0007b416f81
// Workaround bug #1043 where bitmaps with referenced pixels cause
// CGImageDestinationFinalize to crash
SkBitmap copy;
- bitmap.deepCopyTo(©, bitmap.config());
+ bitmap.deepCopyTo(©);
bm = copy;
#endif
//#define SK_SUPPORT_LEGACY_COPYTO_CONFIG
+//#define SK_SUPPORT_DEEPCOPYTO_CONFIG
+
struct SkMask;
struct SkIRect;
struct SkRect;
class SkPixelRefFactory;
class SkRegion;
class SkString;
-
-#define SK_SUPPORT_DEEPCOPYTO_CONFIG
-
class GrTexture;
/** \class SkBitmap
#include "SkRect.h"
#include "Test.h"
+struct Pair {
+ SkColorType fColorType;
+ const char* fValid;
+};
+
+#ifdef SK_SUPPORT_DEEPCOPYTO_CONFIG
static const char* boolStr(bool value) {
return value ? "true" : "false";
}
"None", "8888"
};
-struct Pair {
- SkColorType fColorType;
- const char* fValid;
-};
-
/**
* Check to ensure that copying a GPU-backed SkBitmap behaved as expected.
* @param reporter Used to report failures.
}
}
+#endif
// Stripped down version of TestBitmapCopy that checks basic fields (width, height, config, genID)
// to ensure that they were copied properly.
// Workaround bug #1043 where bitmaps with referenced pixels cause
// CGImageDestinationFinalize to crash
SkBitmap copy;
- bitmap.deepCopyTo(©, bitmap.config());
+ bitmap.deepCopyTo(©);
bm = copy;
#endif