Home
last modified time | relevance | path

Searched refs:fWidth (Results 1 - 25 of 256) sorted by relevance

1234567891011

/third_party/skia/include/core/
H A DSkSize.h14 int32_t fWidth; member
23 /** Returns true iff fWidth == 0 && fHeight == 0
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 in operator ==()
50 SkScalar fWidth; global() member
[all...]
/third_party/skia/src/core/
H A DSkStrokeRec.cpp16 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 in setHairlineStyle()
[all...]
H A DSkAlphaRuns.cpp22 SkDEBUGCODE(fWidth = width;) in reset()
59 SkASSERT(fWidth > 0); in validate()
67 SkASSERT(count <= fWidth); in validate()
70 SkASSERT(count == fWidth); in validate()
/third_party/skia/bench/
H A DCompositingImagesBench.cpp57 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages()
60 fName.appendf("_image_%dx%d", imageSize.fWidth, imageSize.fHeight); in CompositingImages()
99 auto ii = SkImageInfo::Make(fImageSize.fWidth, fImageSize.fHeight, kRGBA_8888_SkColorType,
102 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight;
114 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint);
132 fTileGridSize.fWidth * fTileGridSize.fHeight);
139 for (int x = 0; x < fTileGridSize.fWidth; ++x) {
156 for (int x = 0; x < fTileGridSize.fWidth - 1; ++x) {
161 fTileGridSize.fWidth
[all...]
H A DImageCycleBench.cpp39 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType,
51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint);
65 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad));
72 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad);
85 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; }
/third_party/skia/src/gpu/
H A DGrRectanizerSkyline.cpp28 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;
82 SkASSERT(newSegment.fX + newSegment.fWidth <= this->width());
90 if (fSkyline[i].fX < fSkyline[i-1].fX + fSkyline[i-1].fWidth) {
91 int shrink = fSkyline[i-1].fX + fSkyline[i-1].fWidth - fSkyline[i].fX;
94 fSkyline[i].fWidth -= shrink;
96 if (fSkyline[i].fWidth <= 0) {
112 fSkyline[i].fWidth
[all...]
H A DGrDynamicAtlas.cpp89 fWidth = std::min(SkNextPow2(initialSize.width()), fMaxAtlasSize); in reset()
139 fDrawBounds.fWidth = std::max(fDrawBounds.width(), location->x() + width); in addRect()
154 if (w > fWidth) { in internalPlaceRect()
155 fWidth = std::min(SkNextPow2(w), fMaxAtlasSize); in internalPlaceRect()
160 fTopNode = this->makeNode(nullptr, 0, 0, fWidth, fHeight); in internalPlaceRect()
171 if (fWidth >= fMaxAtlasSize && fHeight >= fMaxAtlasSize) { in internalPlaceRect()
174 if (fHeight <= fWidth) { in internalPlaceRect()
177 fTopNode = this->makeNode(fTopNode, 0, top, fWidth, fHeight); in internalPlaceRect()
179 int left = fWidth; in internalPlaceRect()
180 fWidth in internalPlaceRect()
[all...]
H A DGrNativeRect.h22 int fWidth; member
43 static_assert(8 == offsetof(GrNativeRect, fWidth)); in asInts()
49 SkIRect asSkIRect() const { return SkIRect::MakeXYWH(fX, fY, fWidth, fHeight); } in asSkIRect()
65 fWidth = width; in setRelativeTo()
73 SkASSERT(fWidth >= 0); in setRelativeTo()
80 fX + fWidth >= width && in contains()
84 void invalidate() {fX = fWidth = fY = fHeight = -1;} in invalidate()
85 bool isInvalid() const { return fX == -1 && fWidth == -1 && fY == -1 in isInvalid()
H A DGrRectanizer.h17 GrRectanizer(int width, int height) : fWidth(width), fHeight(height) { in GrRectanizer()
26 int width() const { return fWidth; } in width()
40 const int fWidth; member in GrRectanizer
H A DGrScissorState.h47 SkASSERT(logicalDimensions.fWidth <= fRTSize.fWidth && in relaxTest()
49 if (fRect.fLeft == 0 && fRect.fTop == 0 && fRect.fRight >= logicalDimensions.fWidth && in relaxTest()
68 fRect.fRight < fRTSize.fWidth || fRect.fBottom < fRTSize.fHeight; in enabled()
/third_party/skia/modules/skparagraph/src/
H A DTextWrapper.h41 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch()
43 : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch()
49 fWidth += c->width(); in TextStretch()
52 fWidthWithGhostSpaces = fWidth; in TextStretch()
55 inline SkScalar width() const { return fWidth; } in width()
72 fWidth += stretch.fWidth; in extend()
92 fWidth += cluster->width(); in extend()
112 fWidth = 0; in startFrom()
116 fWidthWithGhostSpaces = fWidth; in saveBreak()
168 SkScalar fWidth; global() member in skia::textlayout::TextWrapper::TextStretch
[all...]
/third_party/skia/tests/
H A DVkDrawableTest.cpp41 , fWidth(width) in TestDrawable()
51 , fWidth(width) in DrawHandlerBasic()
68 clearRect.rect.offset = { fWidth / 2, 0 };
69 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight };
83 vkInfo.fDrawBounds->offset = { fWidth / 2, 0 };
84 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight };
88 int32_t fWidth; member in TestDrawable::DrawHandlerBasic
149 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw()
160 SkRect dstRect = SkRect::MakeXYWH(3*td->fWidth/ in ImportDraw()
217 int32_t fWidth; global() member in TestDrawable
[all...]
H A DApplyGammaTest.cpp99 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()
140 sk_memset32(read.get(), 0, kBaseSize.fWidth * kBaseSize.fHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 for (int x = 0; x < kBaseSize.fWidth && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
150 uint32_t r = read.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
151 uint32_t s = srcPixels.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DSizeTest.cpp31 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in DEF_TEST()
57 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in DEF_TEST()
/third_party/icu/icu4c/source/io/
H A Duscanf_p.cpp84 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...]
H A Dsprintf.cpp69 info->fWidth != -1 && resultLen < info->fWidth) { in u_sprintf_pad_and_justify()
70 return info->fWidth; in u_sprintf_pad_and_justify()
76 if(info->fWidth != -1 && resultLen < info->fWidth) { in u_sprintf_pad_and_justify()
77 int32_t paddingLeft = info->fWidth - resultLen; in u_sprintf_pad_and_justify()
/third_party/skia/third_party/externals/icu/source/io/
H A Duscanf_p.cpp84 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...]
/third_party/skia/experimental/sktext/src/
H A DLine.h85 Stretch() : fGlyphStart(), fGlyphEnd(), fWidth(0), fTextRange(EMPTY_RANGE), fTextMetrics() { } in Stretch()
90 , fWidth(0.0) in Stretch()
97 , fWidth(width) in Stretch()
117 fWidth = 0.0f; in clean()
131 this->fWidth = tail.fWidth; in moveTo()
142 this->fWidth += tail.fWidth; in moveTo()
151 this->fWidth = width; in finish()
154 SkScalar width() const { return fWidth; } in width()
167 SkScalar fWidth; global() member in skia::text::Stretch
[all...]
/third_party/skia/tools/
H A Dimage_diff_metric.cpp29 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()
/third_party/icu/icu4c/source/i18n/
H A Dmeasfmt.cpp358 fWidth(w), in MeasureFormat()
371 fWidth(w), in MeasureFormat()
381 fWidth(other.fWidth), in MeasureFormat()
399 fWidth = other.fWidth; in operator =()
413 fWidth(UMEASFMT_WIDTH_SHORT), in MeasureFormat()
443 if (fWidth != rhs.fWidth) { in operator ==()
515 .unitWidth(getUnitWidth(fWidth)) in formatMeasurePerUnit()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dmeasfmt.cpp358 fWidth(w), in MeasureFormat()
371 fWidth(w), in MeasureFormat()
381 fWidth(other.fWidth), in MeasureFormat()
399 fWidth = other.fWidth; in operator =()
413 fWidth(UMEASFMT_WIDTH_SHORT), in MeasureFormat()
443 if (fWidth != rhs.fWidth) { in operator ==()
515 .unitWidth(getUnitWidth(fWidth)) in formatMeasurePerUnit()
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dmeasfmt.cpp358 fWidth(w), in MeasureFormat()
371 fWidth(w), in MeasureFormat()
381 fWidth(other.fWidth), in MeasureFormat()
399 fWidth = other.fWidth; in operator =()
413 fWidth(UMEASFMT_WIDTH_SHORT), in MeasureFormat()
443 if (fWidth != rhs.fWidth) { in operator ==()
515 .unitWidth(getUnitWidth(fWidth)) in formatMeasurePerUnit()
[all...]
/third_party/skia/experimental/skrive/src/
H A DEllipse.cpp38 if (SkScalarNearlyEqual(fWidth, fHeight)) { in onDraw()
39 canvas->drawCircle(0, 0, fWidth * 0.5f, paint); in onDraw()
41 canvas->drawOval(SkRect::MakeXYWH(-fWidth * 0.5f, -fHeight * 0.5f, fWidth, fHeight), paint); in onDraw()
/third_party/skia/tools/sk_app/android/
H A DRasterWindowContext_android.cpp43 fWidth = ANativeWindow_getWidth(fNativeWindow); in RasterWindowContext_android()
60 ANativeWindow_setBuffersGeometry(fNativeWindow, fWidth, fHeight, format); in setBuffersGeometry()
69 fWidth = w; in resize()
78 SkImageInfo info = SkImageInfo::Make(fWidth, fHeight, in getBackbufferSurface()
/third_party/skia/include/private/
H A DSkEncodedInfo.h173 return SkImageInfo::Make(fWidth, fHeight, ct, alpha, std::move(cs)); in makeImageInfo()
176 int width() const { return fWidth; } in width()
223 auto copy = SkEncodedInfo::Make(fWidth, fHeight, fColor, fAlpha, fBitsPerComponent); in copy()
233 : fWidth(width) in SkEncodedInfo()
241 int fWidth; member

Completed in 14 milliseconds

1234567891011