skia2/debugger
reed@google.com f1ab723033 Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This
allows the client more control over the scaling. Because of virtual overrides
and wanting to keep the old call-sites up and running, this CL renames the
virtual entry-point to drawBitmapRectToRect, and downgrades drawBitmapRect to
a non-virtual helper function.

The implementation is to use the float-rect for computing the matrix, but still
cons-up an integer rect for the purposes of subsetting the original bitmap. We
do this by calling float_src->roundOut(&int_src) so that we include all
(partially) covered src pixels.

No change needed on SkDevice, since that signature is explicitly passed the
computed matrix.
Review URL: https://codereview.appspot.com/6501140

git-svn-id: http://skia.googlecode.com/svn/trunk@5578 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-09-18 12:59:44 +00:00
..
QT Sanitizing source files in Skia_Periodic_House_Keeping 2012-09-11 02:01:14 +00:00
debuggermain.cpp Refactoring into a public facing facing SkDebugger class first pass. 2012-08-07 16:12:23 +00:00
make_debugger.sh Effects Bug Fix 2012-08-13 14:26:36 +00:00
moc.sh Moved the ownership of the current clip and current matrix into the debug canvas as part of the upcoming general refactor to everything living in debug canvas. 2012-08-03 17:32:05 +00:00
SkDebugCanvas.cpp Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkDebugCanvas.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkDebugger.cpp Refactoring into a public facing facing SkDebugger class first pass. 2012-08-07 16:12:23 +00:00
SkDebugger.h Replaced all instances of std strings and vectors in favor of SkStrings and SkTDArrays within skia code 2012-08-07 20:41:37 +00:00
SkDrawCommand.cpp Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkDrawCommand.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkObjectParser.cpp Fixed Windows compiler complaints (esp. in debugger) 2012-09-06 18:43:21 +00:00
SkObjectParser.h Replaced all instances of std strings and vectors in favor of SkStrings and SkTDArrays within skia code 2012-08-07 20:41:37 +00:00