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

Unified Diff: core/cross/bitmap.cc

Issue 164130: This CL adds client.toDataURL which gets the contents... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 4 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 | « core/cross/bitmap.h ('k') | core/cross/bitmap_png.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/bitmap.cc
===================================================================
--- core/cross/bitmap.cc (revision 22687)
+++ core/cross/bitmap.cc (working copy)
@@ -146,8 +146,8 @@
uint8* dst =
GetMipData(level) +
- image::ComputeMipChainSize(mip_width, dst_top, format(), 1) +
- image::ComputeMipChainSize(dst_left, 1, format(), 1);
+ image::ComputePitch(format(), mip_width) * dst_top +
+ image::ComputePitch(format(), dst_left);
const uint8* src = static_cast<const uint8*>(src_data);
if (!compressed) {
« no previous file with comments | « core/cross/bitmap.h ('k') | core/cross/bitmap_png.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698