Home
last modified time | relevance | path

Searched refs:fWidth (Results 1 – 25 of 533) sorted by relevance

12345678910>>...22

/external/skqp/include/core/
DSkSize.h14 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/
DSkSize.h14 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/skqp/src/core/
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 = 0; in setHairlineStyle()
[all …]
DSkGlyph.cpp18 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/skia/src/core/
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 = 0; in setHairlineStyle()
[all …]
DSkGlyph.cpp18 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/skia/src/gpu/ccpr/
DGrCCAtlas.cpp65 fWidth = 1 << (log2area / 2); in GrCCAtlas()
67 fWidth = SkTClamp(fWidth, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in GrCCAtlas()
70 if (fWidth < specs.fMinWidth || fHeight < specs.fMinHeight) { in GrCCAtlas()
73 fWidth = SkTMin(specs.fMinWidth + kPadding, fMaxTextureSize); in GrCCAtlas()
77 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
94 desc.fWidth = fWidth; in GrCCAtlas()
117 fDrawBounds.fWidth = SkTMax(fDrawBounds.width(), location.x() + devIBounds.width()); in addRect()
131 if (fWidth == fMaxTextureSize && fHeight == fMaxTextureSize) { in internalPlaceRect()
134 if (fHeight <= fWidth) { in internalPlaceRect()
137 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect()
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCAtlas.cpp64 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/skqp/src/gpu/gl/
DGrGLIRect.h23 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/gl/
DGrGLIRect.h23 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/skqp/src/gpu/
DGrRectanizer_skyline.cpp26 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()
DGrSurfaceProxy.cpp30 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 …]
DGrBackendSurface.cpp186 , 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/skia/src/gpu/
DGrRectanizer_skyline.cpp26 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()
DGrSurfaceProxy.cpp32 return desc.fWidth <= 0 && in is_valid_fully_lazy()
40 return ((desc.fWidth > 0 && desc.fHeight > 0) || in is_valid_partially_lazy()
41 (desc.fWidth <= 0 && desc.fHeight <= 0)) && in is_valid_partially_lazy()
46 return desc.fWidth > 0 && in is_valid_non_lazy()
60 , fWidth(desc.fWidth) in GrSurfaceProxy()
90 , fWidth(fTarget->width()) in GrSurfaceProxy()
138 desc.fWidth = fWidth; in createSurfaceImpl()
156 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createSurfaceImpl()
305 return fWidth; in worstCaseWidth()
307 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fWidth)); in worstCaseWidth()
[all …]
DGrBackendSurface.cpp196 , fWidth(width) in GrBackendTexture()
211 , fWidth(width) in GrBackendTexture()
224 , fWidth(width) in GrBackendTexture()
236 , fWidth(width) in GrBackendTexture()
265 fWidth = that.fWidth; in operator =()
392 if (t0.fWidth != t1.fWidth || in TestingOnly_Equals()
456 , fWidth(width) in GrBackendRenderTarget()
471 , fWidth(width) in GrBackendRenderTarget()
485 : fWidth(width) in GrBackendRenderTarget()
501 , fWidth(width) in GrBackendRenderTarget()
[all …]
/external/icu/icu4c/source/io/
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 …]
/external/pdfium/xfa/fwl/theme/
Dcfwl_checkboxtp.cpp117 float fWidth = pRtSign->width; in DrawSignDiamond() local
120 path.MoveTo(CFX_PointF(pRtSign->left + fWidth / 2, pRtSign->top)); in DrawSignDiamond()
122 path.LineTo(CFX_PointF(pRtSign->left + fWidth / 2, fBottom)); in DrawSignDiamond()
124 path.LineTo(CFX_PointF(pRtSign->left + fWidth / 2, pRtSign->top)); in DrawSignDiamond()
222 float fWidth = kSignPath; in InitCheckPath() local
225 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in InitCheckPath()
226 CFX_PointF pt2(fWidth / 4.5f, fBottom + fHeight / 16.0f); in InitCheckPath()
227 CFX_PointF pt3(fWidth / 3.0f, fBottom); in InitCheckPath()
228 CFX_PointF pt4(fWidth * 14 / 15.0f, fBottom + fHeight * 15 / 16.0f); in InitCheckPath()
229 CFX_PointF pt5(fWidth / 3.6f, fBottom + fHeight / 3.5f); in InitCheckPath()
[all …]
/external/skia/tests/
DVkDrawableTest.cpp38 , 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/tests/
DVkDrawableTest.cpp38 , 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/skia/bench/
DCompositingImagesBench.cpp27 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()
DImageCycleBench.cpp37 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/skqp/bench/
DCompositingImagesBench.cpp27 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()
DImageCycleBench.cpp37 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/pdfium/fpdfsdk/pwl/
Dcpwl_appstream.cpp132 const float fWidth = crBBox.right - crBBox.left; in GetAP_Check() local
154 pts[i][j].x = pts[i][j].x * fWidth + crBBox.left; in GetAP_Check()
183 float fWidth = crBBox.right - crBBox.left; in GetAP_Circle() local
187 CFX_PointF pt2(crBBox.left + fWidth / 2, crBBox.top); in GetAP_Circle()
189 CFX_PointF pt4(crBBox.left + fWidth / 2, crBBox.bottom); in GetAP_Circle()
239 float fWidth = crBBox.right - crBBox.left; in GetAP_Diamond() local
243 CFX_PointF pt2(crBBox.left + fWidth / 2, crBBox.top); in GetAP_Diamond()
245 CFX_PointF pt4(crBBox.left + fWidth / 2, crBBox.bottom); in GetAP_Diamond()
301 float fWidth = crBBox.right - crBBox.left; in GetAP_HalfCircle() local
304 CFX_PointF pt1(-fWidth / 2, 0); in GetAP_HalfCircle()
[all …]

12345678910>>...22