Go to file
Alexander Midlash 77e3afc908 [SkSVGDevice] Add support for image shaders.
Below is an example of the generated svg for an image shader
that repeats in the x direction only:

<svg stroke="none" x="9" y="153" width="50" height="30">
  <defs>
    <pattern id="pattern_1_19" patternUnits="userSpaceOnUse" patternContentUnits="userSpaceOnUse" width="31" height="100%" x="0" y="0">
      <image id="img_2_19" x="0" y="0" width="31" height="30" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="data:image/png;base64,LONG_B64_STRING_HERE"></image>
    </pattern>
  </defs>
  <rect fill="url(#pattern_1_19)" stroke="none" x="0" y="0" width="100%" height="100%"></rect>
</svg>

Matching the height of the pattern with the height of the container prevents it from repeating in the y direction.

R=fmalita@chromium.org

Bug: skia::7681
Change-Id: I43e4f19acda4bd40c7a8b5259d67c26a108d6f67
Reviewed-on: https://skia-review.googlesource.com/111420
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
2018-03-07 02:25:30 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Move internal calls from GrContext to GrContextPriv 2018-03-06 14:23:45 +00:00
bin remove fetch-gn dependency on buildtools 2018-02-21 20:42:26 +00:00
debugger Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
dm Move internal calls from GrContext to GrContextPriv 2018-03-06 14:23:45 +00:00
docs work in imageinfo and phrase substitution 2018-03-05 18:48:15 +00:00
example Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
experimental [skottie] Inverted matte support 2018-03-05 20:11:05 +00:00
fuzz Fix a tiny typo 2018-03-01 14:52:04 +00:00
gm add tiler for SkDraw 2018-03-06 19:56:46 +00:00
gn add tiler for SkDraw 2018-03-06 19:56:46 +00:00
include Cleaning up SkColorSpaceXform a bit 2018-03-06 20:01:51 +00:00
infra Update SKP version 2018-03-04 08:09:10 +00:00
platform_tools Viewer/Amdroid: universal build, resources in APK 2018-03-06 22:52:10 +00:00
resources Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
samplecode Move internal calls from GrContext to GrContextPriv 2018-03-06 14:23:45 +00:00
site work in imageinfo and phrase substitution 2018-03-05 18:48:15 +00:00
src [SkSVGDevice] Add support for image shaders. 2018-03-07 02:25:30 +00:00
tests [SkSVGDevice] Add support for image shaders. 2018-03-07 02:25:30 +00:00
third_party Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
tools Viewer/Amdroid: universal build, resources in APK 2018-03-06 22:52:10 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fix assert format string in GrContext_colorTypeSupportedAsImage test. 2018-02-26 17:02:38 +00:00
BUILD.gn Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ e05ffdd19..d2cb7cec4 (1 commit) 2018-03-06 17:46:46 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Presubmit that modified json files are valid json. 2018-02-12 16:32:12 +00:00
public.bzl Add "--nonativeFonts" to public.bzl for running dm. 2018-03-06 19:02:31 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Test change 2018-02-15 17:46:19 +00:00

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

See full details, and build instructions, at https://skia.org.