Searched refs:viewBox (Results 1 - 9 of 9) sorted by relevance
/third_party/skia/modules/svg/src/ |
H A D | SkSVGNode.cpp | 132 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 D | SkSVGSVG.cpp | 23 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 D | SkSVGImage.cpp | 70 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 D | SkSVGDOM.cpp | 99 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 D | crbug_1113794.cpp | 26 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 D | pictureimagegenerator.cpp | 41 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 D | pathops.spec.js | 34 <svg class='expected' viewBox='${getViewBox(expectedPath)}'> 38 <svg class='actual' viewBox='${getViewBox(actualPath)}'>
|
/third_party/libabigail/src/ |
H A D | abg-viz-svg.cc | 61 viewBox="0 0 __width __height" enable-background="new 0 0 __width __height">
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
H A D | stylo.hpp | [all...] |
Completed in 28 milliseconds