Do not define SK_SUPPORT_DEEPCOPYTO_CONFIG in Skia.

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
This commit is contained in:
commit-bot@chromium.org 2014-02-24 18:51:43 +00:00
parent 3d305207bd
commit d5f032d46b
4 changed files with 11 additions and 10 deletions

View File

@ -1498,7 +1498,7 @@ static SkData* encode_to_dct_data(size_t*, const SkBitmap& bitmap) {
// Workaround bug #1043 where bitmaps with referenced pixels cause
// CGImageDestinationFinalize to crash
SkBitmap copy;
bitmap.deepCopyTo(&copy, bitmap.config());
bitmap.deepCopyTo(&copy);
bm = copy;
#endif

View File

@ -16,6 +16,8 @@
//#define SK_SUPPORT_LEGACY_COPYTO_CONFIG
//#define SK_SUPPORT_DEEPCOPYTO_CONFIG
struct SkMask;
struct SkIRect;
struct SkRect;
@ -24,9 +26,6 @@ class SkPixelRef;
class SkPixelRefFactory;
class SkRegion;
class SkString;
#define SK_SUPPORT_DEEPCOPYTO_CONFIG
class GrTexture;
/** \class SkBitmap

View File

@ -19,6 +19,12 @@
#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";
}
@ -28,11 +34,6 @@ static const char* gColorTypeName[] = {
"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.
@ -99,6 +100,7 @@ static void TestIndividualCopy(skiatest::Reporter* reporter, const SkColorType d
}
}
#endif
// Stripped down version of TestBitmapCopy that checks basic fields (width, height, config, genID)
// to ensure that they were copied properly.

View File

@ -93,7 +93,7 @@ static SkData* encode_to_dct_data(size_t*, const SkBitmap& bitmap) {
// Workaround bug #1043 where bitmaps with referenced pixels cause
// CGImageDestinationFinalize to crash
SkBitmap copy;
bitmap.deepCopyTo(&copy, bitmap.config());
bitmap.deepCopyTo(&copy);
bm = copy;
#endif