Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index a7615bd55c03debd259224faa1371f0080a0348e..a7b69547168ef5caa7cec2b43463b187cf1939ae 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1049,7 +1049,11 @@ bool SkBitmap::copyTo(SkBitmap* dst, Config dstConfig, Allocator* alloc) const { |
// guaranteed that this is an exact copy, meaning we should clone |
// the genID. |
if (pixelRef->info().fHeight == fPixelRef->info().fHeight) { |
- SkASSERT(pixelRef->info() == fPixelRef->info()); |
+ // TODO: what to do if the two infos match, BUT |
+ // fPixelRef is premul and pixelRef is opaque? |
+ // skipping assert for now |
+ // https://code.google.com/p/skia/issues/detail?id=2012 |
hal.canary
2014/01/10 18:46:09
Should we put in some less strict asserts? info.f
|
+// SkASSERT(pixelRef->info() == fPixelRef->info()); |
pixelRef->cloneGenID(*fPixelRef); |
} |
} else { |