Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: tests/BitmapCopyTest.cpp

Issue 25275004: store SkAlphaType inside SkBitmap, on road to support unpremul (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/BitmapCopyTest.cpp
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp
index cccde8af92eb56ba95b90a78a45463f9d197f303..382fc16180422b5dbbda24e41dd41aef1597cff4 100644
--- a/tests/BitmapCopyTest.cpp
+++ b/tests/BitmapCopyTest.cpp
@@ -310,6 +310,10 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) {
SkBitmap subset;
SkIRect r;
r.set(1, 1, 2, 2);
+<<<<<<< HEAD
scroggo 2013/10/18 19:32:40 Needs merge.
+=======
+ bitmap.setAlphaType(kOpaque_SkAlphaType);
+>>>>>>> store SkAlphaType inside SkBitmap, on road to support unpremul
bitmap.setIsVolatile(true);
if (bitmap.extractSubset(&subset, r)) {
REPORTER_ASSERT(reporter, subset.width() == 1);
@@ -333,8 +337,12 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter,
(copy.getColorTable() != NULL) == hasCT);
}
+<<<<<<< HEAD
bitmap = srcPremul;
+=======
+ bitmap.setAlphaType(kPremul_SkAlphaType);
+>>>>>>> store SkAlphaType inside SkBitmap, on road to support unpremul
bitmap.setIsVolatile(false);
if (bitmap.extractSubset(&subset, r)) {
REPORTER_ASSERT(reporter,

Powered by Google App Engine
This is Rietveld 408576698