Go to file
scroggo@google.com 1b1bcc3cea New API for encoding bitmaps during serialization.
This change gives more flexibility to the implementation of
EncodeBitmap to prefer calling refEncodedData, doing its own
encode, or even doing both and making a decision about which
to use.

The new function signature also allows the implementation to
tell the ordered write buffer whether to store the pixel offset,
in the case where the encoded bitmap represents the larger
bitmap, or to ignore the pixel offset, in the case where the
implementation only encoded the subset that is used.

Requires changes to chromium to use the new function signature.
(https://codereview.chromium.org/15496006/)

SkPicture:
New API for EncodeBitmap.

SkOrderedReadBuffer:
Ifdef'd out addition of reading the offset.

SkOrderedWriteBuffer:
Never call refEncodedData. Allow the user to call that from their
EncodeBitmap function, if desired.
This addresses https://code.google.com/p/skia/issues/detail?id=1239
Add in ifdef'd out code to record the offset.

PictureTest and PictureRenderer:
Implement the new definition of EncodeBitmap. Also update the name
of the function to meet coding style guidelines.

BUG=https://code.google.com/p/skia/issues/detail?id=1239
R=reed@google.com

Review URL: https://codereview.chromium.org/15489004

git-svn-id: http://skia.googlecode.com/svn/trunk@9226 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-05-21 20:31:23 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Fix flaky Ubuntu performance trigger 2013-05-21 12:26:58 +00:00
debugger Sanitizing source files in Housekeeper-Nightly 2013-05-02 07:01:25 +00:00
experimental path ops work in progress 2013-04-18 15:58:21 +00:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm Improve tool that analyzes gm JSON summary 2013-05-21 16:06:40 +00:00
gyp Add a fontConfig interface for android. 2013-05-21 16:53:50 +00:00
include New API for encoding bitmaps during serialization. 2013-05-21 20:31:23 +00:00
platform_tools Fix android_run_skia to work with multiple attached devices 2013-05-16 18:12:34 +00:00
resources Move resource dir from gm to trunk 2013-04-15 17:36:08 +00:00
samplecode Fix vertical text scaling and clipping on Mac. 2013-05-15 15:07:32 +00:00
src New API for encoding bitmaps during serialization. 2013-05-21 20:31:23 +00:00
tests New API for encoding bitmaps during serialization. 2013-05-21 20:31:23 +00:00
third_party add SkLuaCanvas 2013-05-15 19:34:20 +00:00
tools New API for encoding bitmaps during serialization. 2013-05-21 20:31:23 +00:00
trybots_to_run/chrome Deleting the hardcoded list of compile bots in trybots_to_run. 2013-04-09 11:59:42 +00:00
.gitignore Add .swp files to gitignore. 2013-02-08 16:59:59 +00:00
codereview.settings Removing blank lines from codereview.settings. 2013-02-26 16:01:21 +00:00
DEPS Re-land r9059 with empty cityhash.gyp, instead of deleted cityhash.gyp 2013-05-08 16:04:02 +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 Make make.bat and gyp_skia work with VS 2012. 2013-05-07 19:31:20 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Make make.bat and gyp_skia work with VS 2012. 2013-05-07 19:31:20 +00:00
make.py gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
Makefile path ops fix release android build 2013-04-11 14:09:50 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
PRESUBMIT.py If the tree is closed then print information about contacting the sheriff. 2013-04-12 19:45:46 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
whitespace.txt Autogen has been reset. Whitespace change to trigger rebuilds 2013-05-08 11:18:34 +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