Index: cc/resource_provider.cc |
diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc |
index 4949a6b43ef5fa28200850b3fafdb22a2bb67bbc..826db80b885762591b8b0412e38971c11fcbd475 100644 |
--- a/cc/resource_provider.cc |
+++ b/cc/resource_provider.cc |
@@ -290,6 +290,7 @@ void ResourceProvider::upload(ResourceId id, const uint8_t* image, const IntRect |
} |
if (resource->pixels) { |
+ DCHECK(resource->format == GL_RGBA); |
jamesr
2012/10/25 22:49:47
DCHECK_EQ
|
SkBitmap srcFull; |
srcFull.setConfig(SkBitmap::kARGB_8888_Config, imageRect.width(), imageRect.height()); |
srcFull.setPixels(const_cast<uint8_t*>(image)); |