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

Unified Diff: chrome/common/jpeg_codec.cc

Issue 2929: Some initial work on compiling chrome/common/ on Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/common/gfx/color_utils.cc ('k') | chrome/common/json_value_serializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/jpeg_codec.cc
===================================================================
--- chrome/common/jpeg_codec.cc (revision 2299)
+++ chrome/common/jpeg_codec.cc (working copy)
@@ -514,7 +514,7 @@
SkBitmap* bitmap = new SkBitmap();
bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h);
bitmap->allocPixels();
- memcpy(bitmap->getAddr32(0, 0), &data_vector[0], w * h * 4);
+ memcpy(bitmap->getAddr32(0, 0), &data_vector[0], data_length);
return bitmap;
}
« no previous file with comments | « chrome/common/gfx/color_utils.cc ('k') | chrome/common/json_value_serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698