/external/skqp/include/core/ |
D | SkSize.h | 47 struct SkSize { struct 51 static SkSize Make(SkScalar w, SkScalar h) { return {w, h}; } in Make() argument 53 static SkSize Make(const SkISize& src) { in Make() argument 57 SkSize& operator=(const SkISize& src) { 58 return *this = SkSize{SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)}; 61 static SkSize MakeEmpty() { return {0, 0}; } in MakeEmpty() argument 63 void set(SkScalar w, SkScalar h) { *this = SkSize{w, h}; } in set() argument 73 void setEmpty() { *this = SkSize{0, 0}; } in setEmpty() argument 87 static inline bool operator==(const SkSize& a, const SkSize& b) { argument 91 static inline bool operator!=(const SkSize& a, const SkSize& b) { return !(a == b); }
|
/external/skia/include/core/ |
D | SkSize.h | 47 struct SkSize { struct 51 static SkSize Make(SkScalar w, SkScalar h) { return {w, h}; } in Make() argument 53 static SkSize Make(const SkISize& src) { in Make() argument 57 SkSize& operator=(const SkISize& src) { 58 return *this = SkSize{SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)}; 61 static SkSize MakeEmpty() { return {0, 0}; } in MakeEmpty() argument 63 void set(SkScalar w, SkScalar h) { *this = SkSize{w, h}; } in set() argument 73 void setEmpty() { *this = SkSize{0, 0}; } in setEmpty() argument 87 static inline bool operator==(const SkSize& a, const SkSize& b) { argument 91 static inline bool operator!=(const SkSize& a, const SkSize& b) { return !(a == b); }
|
/external/skia/src/utils/ |
D | SkMultiPictureDocument.cpp | 42 static SkSize join(const SkTArray<SkSize>& sizes) { in join() 43 SkSize joined = {0, 0}; in join() 44 for (SkSize s : sizes) { in join() 45 joined = SkSize{SkTMax(joined.width(), s.width()), SkTMax(joined.height(), s.height())}; in join() 53 SkSize fCurrentPageSize; 55 SkTArray<SkSize> fSizes; 76 for (SkSize s : fSizes) { in onClose() 79 SkSize bigsize = join(fSizes); in onClose() 138 SkSize& s = dstArray[i].fSize; in SkMultiPictureDocumentReadPageSizes() 185 SkSize joined = {0.0f, 0.0f}; in SkMultiPictureDocumentRead() [all …]
|
/external/skqp/src/utils/ |
D | SkMultiPictureDocument.cpp | 42 static SkSize join(const SkTArray<SkSize>& sizes) { in join() 43 SkSize joined = {0, 0}; in join() 44 for (SkSize s : sizes) { in join() 45 joined = SkSize{SkTMax(joined.width(), s.width()), SkTMax(joined.height(), s.height())}; in join() 53 SkSize fCurrentPageSize; 55 SkTArray<SkSize> fSizes; 76 for (SkSize s : fSizes) { in onClose() 79 SkSize bigsize = join(fSizes); in onClose() 138 SkSize& s = dstArray[i].fSize; in SkMultiPictureDocumentReadPageSizes() 185 SkSize joined = {0.0f, 0.0f}; in SkMultiPictureDocumentRead() [all …]
|
/external/skqp/gm/ |
D | shallowgradient.cpp | 11 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&); 13 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() 18 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() 24 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() 30 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() 57 SkSize size = SkSize::Make(r.width(), r.height()); in onDraw()
|
D | filterindiabox.cpp | 18 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { in computeSize() 22 return SkSize::Make(bounds.width(), bounds.height()); in computeSize() 83 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
|
/external/skia/gm/ |
D | shallowgradient.cpp | 11 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&); 13 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() 18 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() 24 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() 30 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() 57 SkSize size = SkSize::Make(r.width(), r.height()); in onDraw()
|
D | mixercolorfilter.cpp | 20 MixerCFGM(const SkSize& tileSize, size_t tileCount) in MixerCFGM() 52 const SkSize fTileSize; 112 DEF_GM( return new MixerCFGM(SkSize::Make(200, 250), 5); )
|
D | filterindiabox.cpp | 18 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { in computeSize() 22 return SkSize::Make(bounds.width(), bounds.height()); in computeSize() 83 SkSize size = computeSize(fBM, fMatrix[i]); in onDraw()
|
/external/skqp/experimental/svg/model/ |
D | SkSVGDOM.h | 29 const SkSize& containerSize() const; 30 void setContainerSize(const SkSize&); 37 SkSize intrinsicSize() const; 39 SkSize fContainerSize;
|
D | SkSVGSVG.cpp | 18 auto viewPort = SkSize::Make(viewPortRect.width(), viewPortRect.height()); in onPrepareToRender() 29 viewPort = SkSize::Make(viewBox.width(), viewBox.height()); in onPrepareToRender() 100 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize() 104 return SkSize::Make(0, 0); in intrinsicSize() 107 return SkSize::Make(lctx.resolve(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize()
|
D | SkSVGRenderContext.h | 25 SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) 34 const SkSize& viewPort() const { return fViewport; } in viewPort() 35 void setViewPort(const SkSize& viewport) { fViewport = viewport; } in setViewPort() 42 SkSize fViewport;
|
/external/skia/experimental/svg/model/ |
D | SkSVGDOM.h | 29 const SkSize& containerSize() const; 30 void setContainerSize(const SkSize&); 37 SkSize intrinsicSize() const; 39 SkSize fContainerSize;
|
D | SkSVGSVG.cpp | 18 auto viewPort = SkSize::Make(viewPortRect.width(), viewPortRect.height()); in onPrepareToRender() 29 viewPort = SkSize::Make(viewBox.width(), viewBox.height()); in onPrepareToRender() 100 SkSize SkSVGSVG::intrinsicSize(const SkSVGLengthContext& lctx) const { in intrinsicSize() 104 return SkSize::Make(0, 0); in intrinsicSize() 107 return SkSize::Make(lctx.resolve(fWidth, SkSVGLengthContext::LengthType::kHorizontal), in intrinsicSize()
|
D | SkSVGRenderContext.h | 25 SkSVGLengthContext(const SkSize& viewport, SkScalar dpi = 90) 34 const SkSize& viewPort() const { return fViewport; } in viewPort() 35 void setViewPort(const SkSize& viewport) { fViewport = viewport; } in setViewPort() 42 SkSize fViewport;
|
/external/skqp/src/core/ |
D | SkBitmapController.cpp | 38 SkSize scale; in processHighRequest() 73 SkSize invScaleSize; in processMediumRequest() 89 const SkSize scale = SkSize::Make(SkScalarInvert(invScaleSize.width()), in processMediumRequest() 93 const SkSize& invScaleFixup = level.fScale; in processMediumRequest()
|
D | SkMaskCache.cpp | 109 fSizes[0] = SkSize{rects[0].width(), rects[0].height()}; in RectsBlurKey() 111 fSizes[1] = SkSize{rects[1].width(), rects[1].height()}; in RectsBlurKey() 112 fSizes[2] = SkSize{rects[0].x() - rects[1].x(), rects[0].y() - rects[1].y()}; in RectsBlurKey() 114 fSizes[1] = SkSize{0, 0}; in RectsBlurKey() 115 fSizes[2] = SkSize{0, 0}; in RectsBlurKey() 117 fSizes[3] = SkSize{rects[0].x() - ir.x(), rects[0].y() - ir.y()}; in RectsBlurKey() 125 SkSize fSizes[4];
|
/external/skia/src/core/ |
D | SkBitmapController.cpp | 38 SkSize scale; in processHighRequest() 73 SkSize invScaleSize; in processMediumRequest() 89 const SkSize scale = SkSize::Make(SkScalarInvert(invScaleSize.width()), in processMediumRequest() 93 const SkSize& invScaleFixup = level.fScale; in processMediumRequest()
|
D | SkMaskCache.cpp | 109 fSizes[0] = SkSize{rects[0].width(), rects[0].height()}; in RectsBlurKey() 111 fSizes[1] = SkSize{rects[1].width(), rects[1].height()}; in RectsBlurKey() 112 fSizes[2] = SkSize{rects[0].x() - rects[1].x(), rects[0].y() - rects[1].y()}; in RectsBlurKey() 114 fSizes[1] = SkSize{0, 0}; in RectsBlurKey() 115 fSizes[2] = SkSize{0, 0}; in RectsBlurKey() 117 fSizes[3] = SkSize{rects[0].x() - ir.x(), rects[0].y() - ir.y()}; in RectsBlurKey() 125 SkSize fSizes[4];
|
/external/skia/tools/viewer/ |
D | SlideDir.h | 57 SkSize fWinSize = SkSize::MakeEmpty(); 58 SkSize fCellSize = SkSize::MakeEmpty();
|
D | SvgSlide.h | 28 SkSize fWinSize = SkSize::MakeEmpty();
|
/external/skqp/tools/viewer/ |
D | SlideDir.h | 57 SkSize fWinSize = SkSize::MakeEmpty(); 58 SkSize fCellSize = SkSize::MakeEmpty();
|
D | SvgSlide.h | 28 SkSize fWinSize = SkSize::MakeEmpty();
|
/external/skqp/src/pdf/ |
D | SkPDFDocument.cpp | 225 static SkSize operator*(SkISize u, SkScalar s) { return SkSize{u.width() * s, u.height() * s}; } in operator *() 226 static SkSize operator*(SkSize u, SkScalar s) { return SkSize{u.width() * s, u.height() * s}; } in operator *() 253 SkISize pageSize = (SkSize{width, height} * fRasterScale).toRound(); in onBeginPage() 274 SkSize mediaSize = fPageDevice->imageInfo().dimensions() * fInverseRasterScale; in onEndPage()
|
/external/skia/src/pdf/ |
D | SkPDFDocument.cpp | 225 static SkSize operator*(SkISize u, SkScalar s) { return SkSize{u.width() * s, u.height() * s}; } in operator *() 226 static SkSize operator*(SkSize u, SkScalar s) { return SkSize{u.width() * s, u.height() * s}; } in operator *() 253 SkISize pageSize = (SkSize{width, height} * fRasterScale).toRound(); in onBeginPage() 273 SkSize mediaSize = fPageDevice->imageInfo().dimensions() * fInverseRasterScale; in onEndPage()
|