/external/skqp/include/core/ |
D | SkSize.h | 14 int32_t fWidth; member 25 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero() 28 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty() 31 void setEmpty() { fWidth = fHeight = 0; } in setEmpty() 33 int32_t width() const { return fWidth; } in width() 36 bool equals(int32_t w, int32_t h) const { return fWidth == w && fHeight == h; } in equals() 40 return a.fWidth == b.fWidth && a.fHeight == b.fHeight; 48 SkScalar fWidth; member 58 return *this = SkSize{SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)}; 67 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero() [all …]
|
/external/skia/include/core/ |
D | SkSize.h | 14 int32_t fWidth; member 25 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero() 28 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty() 31 void setEmpty() { fWidth = fHeight = 0; } in setEmpty() 33 constexpr int32_t width() const { return fWidth; } in width() 36 constexpr int64_t area() const { return fWidth * fHeight; } in area() 38 bool equals(int32_t w, int32_t h) const { return fWidth == w && fHeight == h; } in equals() 42 return a.fWidth == b.fWidth && a.fHeight == b.fHeight; 50 SkScalar fWidth; member 65 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero() [all …]
|
/external/skia/src/core/ |
D | SkStrokeRec.cpp | 16 fWidth = (kFill_InitStyle == s) ? kStrokeRec_FillStyleWidth : 0; in SkStrokeRec() 36 fWidth = kStrokeRec_FillStyleWidth; in init() 40 fWidth = paint.getStrokeWidth(); in init() 46 fWidth = kStrokeRec_FillStyleWidth; in init() 49 fWidth = paint.getStrokeWidth(); in init() 56 fWidth = kStrokeRec_FillStyleWidth; in init() 68 if (fWidth < 0) { in getStyle() 70 } else if (0 == fWidth) { in getStyle() 78 fWidth = kStrokeRec_FillStyleWidth; in setFillStyle() 83 fWidth = 0; in setHairlineStyle() [all …]
|
/external/skqp/src/core/ |
D | SkStrokeRec.cpp | 16 fWidth = (kFill_InitStyle == s) ? kStrokeRec_FillStyleWidth : 0; in SkStrokeRec() 36 fWidth = kStrokeRec_FillStyleWidth; in init() 40 fWidth = paint.getStrokeWidth(); in init() 46 fWidth = kStrokeRec_FillStyleWidth; in init() 49 fWidth = paint.getStrokeWidth(); in init() 56 fWidth = kStrokeRec_FillStyleWidth; in init() 68 if (fWidth < 0) { in getStyle() 70 } else if (0 == fWidth) { in getStyle() 78 fWidth = kStrokeRec_FillStyleWidth; in setFillStyle() 83 fWidth = 0; in setHairlineStyle() [all …]
|
D | SkGlyph.cpp | 18 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask() 26 fWidth = 0; in zeroMetrics() 73 return format_rowbytes(fWidth, (SkMask::Format)fMaskFormat); in rowBytes() 77 return format_rowbytes(fWidth, format); in rowBytesUsingFormat() 92 fWidth = from.fWidth; in copyImageData()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCAtlas.cpp | 64 fWidth = 1 << (log2area / 2); in GrCCAtlas() 66 fWidth = SkTClamp(fWidth, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in GrCCAtlas() 69 if (fWidth < specs.fMinWidth || fHeight < specs.fMinHeight) { in GrCCAtlas() 72 fWidth = SkTMin(specs.fMinWidth + kPadding, fMaxTextureSize); in GrCCAtlas() 76 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas() 93 desc.fWidth = fWidth; in GrCCAtlas() 116 fDrawBounds.fWidth = SkTMax(fDrawBounds.width(), location.x() + devIBounds.width()); in addRect() 130 if (fWidth == fMaxTextureSize && fHeight == fMaxTextureSize) { in internalPlaceRect() 133 if (fHeight <= fWidth) { in internalPlaceRect() 136 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect() [all …]
|
/external/skia/bench/ |
D | CompositingImagesBench.cpp | 53 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages() 56 fName.appendf("_image_%dx%d", imageSize.fWidth, imageSize.fHeight); in CompositingImages() 95 auto ii = SkImageInfo::Make(fImageSize.fWidth, fImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw() 98 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight; in onPerCanvasPreDraw() 110 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint); in onPerCanvasPreDraw() 128 fTileGridSize.fWidth * fTileGridSize.fHeight); in onDraw() 135 for (int x = 0; x < fTileGridSize.fWidth; ++x) { in onDraw() 152 for (int x = 0; x < fTileGridSize.fWidth - 1; ++x) { in onDraw() 157 fTileGridSize.fWidth - 1, nullptr, nullptr, &paint, in onDraw() 161 set[i++] = this->getAdjustedEntry(fTileGridSize.fWidth - 1, y, l, dstQuad); in onDraw() [all …]
|
D | ImageCycleBench.cpp | 37 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw() 49 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw() 64 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad)); in onDraw() 71 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad); in onDraw() 83 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
|
/external/skqp/src/gpu/gl/ |
D | GrGLIRect.h | 23 GrGLsizei fWidth; member 34 GR_STATIC_ASSERT(8 == offsetof(GrGLIRect, fWidth)); in asInts() 41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport() 45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor() 68 fWidth = width; in setRelativeTo() 76 SkASSERT(fWidth >= 0); in setRelativeTo() 83 fLeft + fWidth >= glRect.fLeft + glRect.fWidth && in contains() 87 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate() 88 bool isInvalid() const { return fLeft == -1 && fWidth == -1 && fBottom == -1 in isInvalid()
|
/external/skia/src/gpu/ |
D | GrRectanizerSkyline.cpp | 28 if (y < bestY || (y == bestY && fSkyline[i].fWidth < bestWidth)) { in addRect() 30 bestWidth = fSkyline[i].fWidth; in addRect() 66 widthLeft -= fSkyline[i].fWidth; in rectangleFits() 79 newSegment.fWidth = width; in addSkylineLevel() 82 SkASSERT(newSegment.fX + newSegment.fWidth <= this->width()); in addSkylineLevel() 90 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) { in addSkylineLevel() 91 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX; in addSkylineLevel() 94 fSkyline[i].fWidth -= shrink; in addSkylineLevel() 96 if (fSkyline[i].fWidth <= 0) { in addSkylineLevel() 112 fSkyline[i].fWidth += fSkyline[i+1].fWidth; in addSkylineLevel()
|
D | GrDynamicAtlas.cpp | 85 fWidth = std::min(SkNextPow2(initialSize.width()), fMaxAtlasSize); in reset() 94 {fWidth, fHeight}, format, GrRenderable::kYes, sampleCount, in reset() 113 fDrawBounds.fWidth = std::max(fDrawBounds.width(), location.x() + devIBounds.width()); in addRect() 128 if (w > fWidth) { in internalPlaceRect() 129 fWidth = std::min(SkNextPow2(w), fMaxAtlasSize); in internalPlaceRect() 134 fTopNode = std::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in internalPlaceRect() 145 if (fWidth >= fMaxAtlasSize && fHeight >= fMaxAtlasSize) { in internalPlaceRect() 148 if (fHeight <= fWidth) { in internalPlaceRect() 151 fTopNode = std::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect() 153 int left = fWidth; in internalPlaceRect() [all …]
|
D | GrNativeRect.h | 22 int fWidth; member 46 static_assert(8 == offsetof(GrNativeRect, fWidth)); in asInts() 52 SkIRect asSkIRect() const { return SkIRect::MakeXYWH(fX, fY, fWidth, fHeight); } in asSkIRect() 68 fWidth = width; in setRelativeTo() 76 SkASSERT(fWidth >= 0); in setRelativeTo() 83 fX + fWidth >= width && in contains() 87 void invalidate() {fX = fWidth = fY = fHeight = -1;} in invalidate() 88 bool isInvalid() const { return fX == -1 && fWidth == -1 && fY == -1 in isInvalid()
|
D | GrRectanizerSkyline.h | 18 GrRectanizerSkyline(int w, int h) : fWidth{w}, fHeight{h} { in GrRectanizerSkyline() 28 seg->fWidth = this->width(); in reset() 33 int width() const { return fWidth; } in width() 40 int fWidth; member 52 const int fWidth; variable
|
/external/skia/modules/skparagraph/src/ |
D | TextWrapper.h | 37 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch() 39 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch() 47 inline SkScalar width() const { return fWidth; } in width() 64 fWidth += stretch.fWidth; in extend() 81 fWidth += cluster->width(); in extend() 97 fWidth = 0; in startFrom() 101 fWidthWithGhostSpaces = fWidth; in saveBreak() 106 fWidth = fWidthWithGhostSpaces; in restoreBreak() 116 fWidth > 0) { in trim() 117 fWidth -= (fEnd.cluster()->width() - fEnd.cluster()->trimmedWidth(fEnd.position())); in trim() [all …]
|
/external/skqp/src/gpu/ |
D | GrRectanizer_skyline.cpp | 26 if (y < bestY || (y == bestY && fSkyline[i].fWidth < bestWidth)) { in addRect() 28 bestWidth = fSkyline[i].fWidth; in addRect() 64 widthLeft -= fSkyline[i].fWidth; in rectangleFits() 77 newSegment.fWidth = width; in addSkylineLevel() 80 SkASSERT(newSegment.fX + newSegment.fWidth <= this->width()); in addSkylineLevel() 88 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) { in addSkylineLevel() 89 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX; in addSkylineLevel() 92 fSkyline[i].fWidth -= shrink; in addSkylineLevel() 94 if (fSkyline[i].fWidth <= 0) { in addSkylineLevel() 110 fSkyline[i].fWidth += fSkyline[i+1].fWidth; in addSkylineLevel()
|
D | GrSurfaceProxy.cpp | 30 return desc.fWidth <= 0 && in is_valid_fully_lazy() 38 return ((desc.fWidth > 0 && desc.fHeight > 0) || in is_valid_partially_lazy() 39 (desc.fWidth <= 0 && desc.fHeight <= 0)) && in is_valid_partially_lazy() 44 return desc.fWidth > 0 && in is_valid_non_lazy() 58 , fWidth(desc.fWidth) in GrSurfaceProxy() 88 , fWidth(fTarget->width()) in GrSurfaceProxy() 141 desc.fWidth = fWidth; in createSurfaceImpl() 159 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createSurfaceImpl() 308 return fWidth; in worstCaseWidth() 310 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fWidth)); in worstCaseWidth() [all …]
|
D | GrBackendSurface.cpp | 186 , fWidth(width) in GrBackendTexture() 201 , fWidth(width) in GrBackendTexture() 214 , fWidth(width) in GrBackendTexture() 226 , fWidth(width) in GrBackendTexture() 255 fWidth = that.fWidth; in operator =() 382 if (t0.fWidth != t1.fWidth || in TestingOnly_Equals() 446 , fWidth(width) in GrBackendRenderTarget() 461 , fWidth(width) in GrBackendRenderTarget() 475 : fWidth(width) in GrBackendRenderTarget() 491 , fWidth(width) in GrBackendRenderTarget() [all …]
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_checkboxtp.cpp | 99 float fWidth = rtSign.width; in DrawSignDiamond() local 102 path.MoveTo(CFX_PointF(rtSign.left + fWidth / 2, rtSign.top)); in DrawSignDiamond() 104 path.LineTo(CFX_PointF(rtSign.left + fWidth / 2, fBottom)); in DrawSignDiamond() 106 path.LineTo(CFX_PointF(rtSign.left + fWidth / 2, rtSign.top)); in DrawSignDiamond() 165 float fWidth = kSignPath; in InitCheckPath() local 168 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in InitCheckPath() 169 CFX_PointF pt2(fWidth / 4.5f, fBottom + fHeight / 16.0f); in InitCheckPath() 170 CFX_PointF pt3(fWidth / 3.0f, fBottom); in InitCheckPath() 171 CFX_PointF pt4(fWidth * 14 / 15.0f, fBottom + fHeight * 15 / 16.0f); in InitCheckPath() 172 CFX_PointF pt5(fWidth / 3.6f, fBottom + fHeight / 3.5f); in InitCheckPath() [all …]
|
/external/icu/icu4c/source/io/ |
D | uscanf_p.cpp | 84 int32_t fWidth; /* Width */ member 125 info->fWidth = -1; in u_scanf_parse_spec() 192 info->fWidth = (int) (*s++ - DIGIT_ZERO); in u_scanf_parse_spec() 195 info->fWidth *= 10; in u_scanf_parse_spec() 196 info->fWidth += (int) (*s++ - DIGIT_ZERO); in u_scanf_parse_spec() 412 *(int16_t*)(args[0].ptrValue) = (int16_t)(UINT16_MAX & info->fWidth); in u_scanf_count_handler() 414 *(int64_t*)(args[0].ptrValue) = info->fWidth; in u_scanf_count_handler() 416 *(int32_t*)(args[0].ptrValue) = (int32_t)(UINT32_MAX & info->fWidth); in u_scanf_count_handler() 453 if(info->fWidth != -1) in u_scanf_double_handler() 454 len = ufmt_min(len, info->fWidth); in u_scanf_double_handler() [all …]
|
/external/skia/tests/ |
D | VkDrawableTest.cpp | 38 , fWidth(width) in TestDrawable() 48 , fWidth(width) in DrawHandlerBasic() 65 clearRect.rect.offset = { fWidth / 2, 0 }; in draw() 66 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw() 80 vkInfo.fDrawBounds->offset = { fWidth / 2, 0 }; in draw() 81 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw() 85 int32_t fWidth; member in TestDrawable::DrawHandlerBasic 145 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw() 156 SkRect dstRect = SkRect::MakeXYWH(3*td->fWidth/4, 0, td->fWidth/4, td->fHeight); in ImportDraw() 157 SkIRect srcRect = SkIRect::MakeWH(td->fWidth/4, td->fHeight); in ImportDraw() [all …]
|
D | ApplyGammaTest.cpp | 99 static const size_t kRowBytes = sizeof(uint32_t) * kBaseSize.fWidth; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 105 for (int x = 0; x < kBaseSize.fWidth; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 106 srcPixels.get()[y*kBaseSize.fWidth+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 139 sk_memset32(read.get(), 0, kBaseSize.fWidth * kBaseSize.fHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 148 for (int x = 0; x < kBaseSize.fWidth && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 149 uint32_t r = read.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 150 uint32_t s = srcPixels.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/skqp/tests/ |
D | VkDrawableTest.cpp | 38 , fWidth(width) in TestDrawable() 48 , fWidth(width) in DrawHandlerBasic() 65 clearRect.rect.offset = { fWidth / 2, 0 }; in draw() 66 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw() 80 vkInfo.fDrawBounds->offset = { fWidth / 2, 0 }; in draw() 81 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw() 85 int32_t fWidth; member in TestDrawable::DrawHandlerBasic 145 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw() 156 SkRect dstRect = SkRect::MakeXYWH(3*td->fWidth/4, 0, td->fWidth/4, td->fHeight); in ImportDraw() 157 SkIRect srcRect = SkIRect::MakeWH(td->fWidth/4, td->fHeight); in ImportDraw() [all …]
|
/external/skqp/bench/ |
D | CompositingImagesBench.cpp | 27 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages() 40 auto ii = SkImageInfo::Make(fTileSize.fWidth, fTileSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw() 43 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight; in onPerCanvasPreDraw() 53 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint); in onPerCanvasPreDraw() 71 for (int x = 0; x < fTileGridSize.fWidth; ++x) { in onDraw() 72 canvas->drawImage(fImages[imgIdx++].get(), x * fTileSize.fWidth + o, in onDraw() 89 return SkIPoint::Make(SkScalarCeilToInt(fTileSize.fWidth * fTileGridSize.fWidth + o), in onGetSize()
|
D | ImageCycleBench.cpp | 37 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw() 49 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw() 64 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad)); in onDraw() 71 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad); in onDraw() 81 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
|
/external/skia/tools/ |
D | image_diff_metric.cpp | 29 bm[i].allocN32Pixels(codec->dimensions().fWidth, codec->dimensions().fHeight); in main() 40 dim.fWidth, dim.fHeight, bm[1].dimensions().fWidth, bm[1].dimensions().fHeight); in main() 47 for (size_t i = 0; i < (size_t)dim.fWidth * (size_t)4; ++i) { in main() 52 ((uint64_t)255 * 4 * (uint64_t)dim.fWidth * (uint64_t)dim.fHeight)); in main()
|