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

Unified Diff: skia/ext/image_operations.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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 | « content/shell/browser/shell_mac.mm ('k') | ui/app_list/app_list_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations.cc
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index 3bb765ff289b7f5c0e4b1e15720361f689067112..6c00129824a63abe24ed944b424a5aa04ec47786 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -480,8 +480,11 @@ SkBitmap ImageOperations::ResizeBasic(const SkBitmap& source,
base::TimeTicks resize_start = base::TimeTicks::Now();
SkIRect dest = { 0, 0, dest_width, dest_height };
- DCHECK(dest.contains(dest_subset)) <<
- "The supplied subset does not fall within the destination image.";
+ DCHECK(dest.contains(dest_subset))
+ << "The supplied subset does not fall within the destination image: "
+ << dest_width << "x" << dest_height << " does not contain "
+ << dest.width() << "x" << dest.height()
+ << "+" << dest.x() << "+" << dest.y();
// If the size of source or destination is 0, i.e. 0x0, 0xN or Nx0, just
// return empty.
« no previous file with comments | « content/shell/browser/shell_mac.mm ('k') | ui/app_list/app_list_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698