skia2/include/utils
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
..
ios Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
mac add SkCreateDataProviderFromStream to SkCGUtils 2012-02-24 15:29:00 +00:00
win Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkBoundaryPatch.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkCamera.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkCubicInterval.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkCullPoints.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDeferredCanvas.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkDumpCanvas.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkInterpolator.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkJSON.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkLayer.h Extended Inst counting to find "unknown" leaked object (SkTMaskGamma) 2012-08-16 14:58:06 +00:00
SkMatrix44.h warning fixes 2011-10-27 21:47:03 +00:00
SkMeshUtils.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkNinePatch.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkNullCanvas.h Add SK_API to null canvas create method 2012-06-11 15:41:25 +00:00
SkNWayCanvas.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkParse.h Make SkMath.h less visible in public header files. 2011-09-27 17:38:17 +00:00
SkParsePaint.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkParsePath.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkProxyCanvas.h Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
SkUnitMappers.h Cleanup code related to SkFlattenable::flatten() 2012-03-29 15:18:04 +00:00
SkWGL.h Add coverage AA support for SampleApp root layers (windows only) 2012-04-17 12:43:00 +00:00