Go to file
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
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Fixed valgrind complaint in MatrixBench 2012-09-17 13:36:47 +00:00
debugger Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
experimental Sanitizing source files in Skia_Periodic_House_Keeping 2012-09-15 02:01:41 +00:00
forth 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
gm Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
gyp Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
include Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
samplecode Add a header for OverView.cpp as well. 2012-09-18 01:52:20 +00:00
src Change drawBitmapRect to take a float-src-rect instead of integer-src-rect. This 2012-09-18 12:59:44 +00:00
tests fixed compiler complaints 2012-09-17 12:05:40 +00:00
third_party Add BSON implementation to third_party 2012-06-13 18:22:09 +00:00
tools Set DEFAULT_REPEATS to 1 2012-09-17 21:10:05 +00:00
trybots_to_run Added cros_daisy to build bots list 2012-08-27 17:57:58 +00:00
.gitignore Keep the entries in .gitignore sorted in alphabetical order. 2012-09-13 15:26:51 +00:00
DEPS Revert r5520 2012-09-13 14:53:15 +00:00
Doxyfile Pointing to http://skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile 2012-07-03 11:35:07 +00:00
gyp_skia gyp_skia: Fix module search path. 2012-07-30 16:48:13 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.py Make "make gyp" work on Windows 2012-03-23 18:14:25 +00:00
Makefile Enable Compile Option to Build Android Executables 2012-07-18 14:59:54 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp Enable Compile Option to Build Android Executables 2012-07-18 14:59:54 +00:00
whitespace.txt Whitespace change to trigger rebuild after skp checkin 2012-09-10 18:56:56 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot