aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/svg/SkSVGDevice.cpp
Commit message (Collapse)AuthorAge
* Some usability ideas around SkTHash.Gravatar mtklein2015-03-20
| | | | | | | | | | | | | | - By default, use new SkGoodHash to hash keys, which is: * for 4 byte values, use SkChecksum::Mix, * for SkStrings, use SkChecksum::Murmur3 on the data, * for other structs, shallow hash the struct with Murmur3. - Expand SkChecksum::Murmur3 to support non-4-byte-aligned data. - Add const foreach() methods. - Have foreach() take a functor, which allows lambdas. BUG=skia: Review URL: https://codereview.chromium.org/1021033002
* [SkSVGDevice] drawBitmap* supportGravatar fmalita2015-02-27
| | | | | | | | | | Also fix a clip transform issue: clips are tracked in device space, but if applied directly to leaf elements they are also subject to local transforms ("transform='...'"). Instead, apply via <g> wrapper elements. R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/959883003
* [SVGDevice] Text whitespace unittestGravatar fmalita2015-02-20
| | | | | | | | | | | Plumb SkDOM as needed to make it suitable for an SkXMLWriter backend. Also fix a potential null typeface issue in SkSVGDevice::AutoElement::addTextAttributes(). R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/940283002
* [SkSVGDevice] Fix whitespace text handlingGravatar fmalita2015-02-19
| | | | | | | | | | | | | SVG ignores leading/trailing whitespace and consolidates mid-text (http://www.w3.org/TR/SVG/text.html#WhiteSpace). This can cause our x/y position indices to get out of whack. Implement a text builder which is SVG whitespace-munging-aware and performs the needed x/y position list adjustments. R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/928583003
* [SkSVGDevice] Full font family supportGravatar fmalita2015-02-13
| | | | | | | | | Use a family name iterator and list all names instead of just one returned by SkTypeface::getFamilyName(). R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/923583002
* Add SkSVGCanvasGravatar fmalita2015-02-06
Add a public SVG canvas factory + move the SVG files from experimental -> src/svg/. Update current clients to the new API. R=reed@google.com, mtklein@google.com, halcanary@google.com Review URL: https://codereview.chromium.org/902583006