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

Unified Diff: cc/resource_provider.cc

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 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: 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);
SkBitmap srcFull;
srcFull.setConfig(SkBitmap::kARGB_8888_Config, imageRect.width(), imageRect.height());
srcFull.setPixels(const_cast<uint8_t*>(image));

Powered by Google App Engine
This is Rietveld 408576698