skia2/src
schenney eeff8bb8ff Allow reset of the SkPictureRecorder cull rect and other parameters during endRecording.
For some users of SkPictureRecorder, the cull rect is more efficiently
determined while drawing is in progress, rather than when recording starts.
The existing API requires the cull rect at start time, even though the
information is not used for any culling purpose until the end of recording.

This patch provides a means to reset the cull rect when recording ends,
allowing users to update the rect based on information learned during
drawing and for the new rect to be used as the culling bound. A valid
bound is still required on the beginRecording call because
it sizes the underlying canvas and sets the aspect ratio for any bounding
box hierarchy. The bounding box factory can also be specified and parameters
that control SkPicture creation.

R=mtklein, reed1
BUG=skia:3919

Review URL: https://codereview.chromium.org/1178673007
2015-07-07 14:27:10 -07:00
..
animator delete (unused) TransparentShader 2015-06-05 11:31:26 -07:00
c Propagate SkSurfaceProps to more call sites 2015-06-23 06:26:08 -07:00
codec Add libjpeg-turbo library (depends on yasm) 2015-07-07 08:50:01 -07:00
core Allow reset of the SkPictureRecorder cull rect and other parameters during endRecording. 2015-07-07 14:27:10 -07:00
device/xps Propagate SkSurfaceProps when known 2015-07-07 10:28:43 -07:00
doc SkPDF: clean up uses of deprecated calls in SkDocument_PDF 2015-05-05 08:00:24 -07:00
effects style nit cleanups. e.g. remove 'virtual' on override declarations 2015-07-07 10:05:18 -07:00
fonts Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
gpu When GrAAConvesTesselator was merging the first and last point of the array, it was deleting the last point without checking to see if any of the previous points shared the same index. This led to continuing to use the index of a deleted point and thus referencing memory past the end of the vertex array. 2015-07-07 12:41:52 -07:00
image add SkImage::NewFromBitmap 2015-07-07 06:11:20 -07:00
images Revert "Remove ambiguity of SkJpegUtility name." 2015-06-15 09:10:03 -07:00
lazy Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
opts SoftLight with SkPMFloat 2015-06-29 12:16:26 -07:00
pathops Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
pdf Propagate SkSurfaceProps when known 2015-07-07 10:28:43 -07:00
pipe add drawImageNine 2015-06-25 12:32:03 -07:00
ports Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
sfnt C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
svg Begin kLegacyFontHost_InitType cleanup 2015-06-22 09:46:59 -07:00
utils add matrix options to drawDrawable 2015-07-07 10:22:31 -07:00
views Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. 2015-07-07 12:21:22 -07:00
xml [SVGDevice] Text whitespace unittest 2015-02-20 13:54:40 -08:00