| Index: cc/resource_provider.cc
|
| diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc
|
| index 3522520c6f3e05fe2a9a7e1c7bc3ed7e1eaf02d1..5bda3688a2627cdcf1773b849f30aed45ff3c6b5 100644
|
| --- a/cc/resource_provider.cc
|
| +++ b/cc/resource_provider.cc
|
| @@ -284,6 +284,7 @@ void ResourceProvider::setPixels(ResourceId id, const uint8_t* image, const gfx:
|
| }
|
|
|
| if (resource->pixels) {
|
| + DCHECK(resource->format == GL_RGBA);
|
| SkBitmap srcFull;
|
| srcFull.setConfig(SkBitmap::kARGB_8888_Config, imageRect.width(), imageRect.height());
|
| srcFull.setPixels(const_cast<uint8_t*>(image));
|
|
|