Index: cc/resources/resource_pool.cc |
diff --git a/cc/resources/resource_pool.cc b/cc/resources/resource_pool.cc |
index 778ddbe853ca87dc4f194643d7c44bf62c6788bb..f1a405dd5248a1628b3e37ea3246b31d53b25945 100644 |
--- a/cc/resources/resource_pool.cc |
+++ b/cc/resources/resource_pool.cc |
@@ -92,6 +92,9 @@ ResourcePool::~ResourcePool() { |
Resource* ResourcePool::AcquireResource(const gfx::Size& size, |
ResourceFormat format) { |
+ DCHECK_EQ(size.width() % 4, 0); |
+ DCHECK_EQ(size.height() % 4, 0); |
+ |
// Finding resources in |unused_resources_| from MRU to LRU direction, touches |
// LRU resources only if needed, which increases possibility of expiring more |
// LRU resources within kResourceExpirationDelayMs. |