Revert r3036. This change breaks loading images as
described in Chromium issue 114107. The Chromium break may be fixed by WebKit patch 78239, at which time this patch can be reapplied. Review URL: https://codereview.appspot.com/5675077 git-svn-id: http://skia.googlecode.com/svn/trunk@3219 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
6c5bf8d9fe
commit
543c719a6d
@ -821,7 +821,6 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const {
|
||||
|
||||
SkBitmap dst;
|
||||
dst.setConfig(this->config(), r.width(), r.height(), this->rowBytes());
|
||||
dst.setIsOpaque(this->isOpaque());
|
||||
dst.setIsVolatile(this->isVolatile());
|
||||
|
||||
if (fPixelRef) {
|
||||
|
@ -312,13 +312,10 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) {
|
||||
SkBitmap subset;
|
||||
SkIRect r;
|
||||
r.set(1, 1, 2, 2);
|
||||
bitmap.setIsOpaque(true);
|
||||
bitmap.setIsVolatile(true);
|
||||
if (bitmap.extractSubset(&subset, r)) {
|
||||
REPORTER_ASSERT(reporter, subset.width() == 1);
|
||||
REPORTER_ASSERT(reporter, subset.height() == 1);
|
||||
REPORTER_ASSERT(reporter,
|
||||
subset.isOpaque() == bitmap.isOpaque());
|
||||
REPORTER_ASSERT(reporter,
|
||||
subset.isVolatile() == true);
|
||||
|
||||
@ -336,11 +333,8 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) {
|
||||
REPORTER_ASSERT(reporter,
|
||||
(copy.getColorTable() != NULL) == hasCT);
|
||||
}
|
||||
bitmap.setIsOpaque(false);
|
||||
bitmap.setIsVolatile(false);
|
||||
if (bitmap.extractSubset(&subset, r)) {
|
||||
REPORTER_ASSERT(reporter,
|
||||
subset.isOpaque() == bitmap.isOpaque());
|
||||
REPORTER_ASSERT(reporter,
|
||||
subset.isVolatile() == false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user