Home
last modified time | relevance | path

Searched refs:viewBox (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/modules/svg/src/
H A DSkSVGNode.cpp132 SkMatrix SkSVGNode::ComputeViewboxMatrix(const SkRect& viewBox, in ComputeViewboxMatrix() argument
135 SkASSERT(!viewBox.isEmpty()); in ComputeViewboxMatrix()
139 const auto sx = viewPort.width() / viewBox.width(), in ComputeViewboxMatrix()
140 sy = viewPort.height() / viewBox.height(); in ComputeViewboxMatrix()
167 const auto tx = -viewBox.x() * scale.x, in ComputeViewboxMatrix()
168 ty = -viewBox.y() * scale.y, in ComputeViewboxMatrix()
169 dx = viewPort.width() - viewBox.width() * scale.x, in ComputeViewboxMatrix()
170 dy = viewPort.height() - viewBox.height() * scale.y; in ComputeViewboxMatrix()
H A DSkSVGSVG.cpp23 const SkRect& viewBox = *fViewBox; in onPrepareToRender() local
26 if (viewBox.isEmpty()) { in onPrepareToRender()
30 // A viewBox overrides the intrinsic viewport. in onPrepareToRender()
31 viewPort = SkSize::Make(viewBox.width(), viewBox.height()); in onPrepareToRender()
33 contentMatrix.preConcat(ComputeViewboxMatrix(viewBox, viewPortRect, fPreserveAspectRatio)); in onPrepareToRender()
H A DSkSVGImage.cpp70 const SkRect viewBox = SkRect::Make(image->bounds()); in LoadImage() local
73 const SkMatrix m = ComputeViewboxMatrix(viewBox, viewPort, par); in LoadImage()
74 const SkRect dst = m.mapRect(viewBox).makeOffset(viewPort.fLeft, viewPort.fTop); in LoadImage()
H A DSkSVGDOM.cpp99 SkSVGViewBoxType viewBox; in SetViewBoxAttribute() local
101 if (!parser.parseViewBox(&viewBox)) { in SetViewBoxAttribute()
105 node->setAttribute(attr, SkSVGViewBoxValue(viewBox)); in SetViewBoxAttribute()
227 { "viewBox" , { SkSVGAttribute::kViewBox , SetViewBoxAttribute }},
/third_party/skia/gm/
H A Dcrbug_1113794.cpp26 SkMatrix viewBox = SkMatrix::RectToRect(SkRect::MakeWH(100, 100), SkRect::MakeWH(600, 200)); in DEF_SIMPLE_GM() local
27 canvas->concat(viewBox); in DEF_SIMPLE_GM()
H A Dpictureimagegenerator.cpp41 static void draw_vector_logo(SkCanvas* canvas, const SkRect& viewBox) { in draw_vector_logo() argument
71 canvas->concat(SkMatrix::RectToRect(skiaBox, viewBox)); in draw_vector_logo()
/third_party/skia/modules/pathkit/tests/
H A Dpathops.spec.js34 <svg class='expected' viewBox='${getViewBox(expectedPath)}'>
38 <svg class='actual' viewBox='${getViewBox(actualPath)}'>
/third_party/libabigail/src/
H A Dabg-viz-svg.cc61 viewBox="0 0 __width __height" enable-background="new 0 0 __width __height">
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dstylo.hpp[all...]

Completed in 28 milliseconds