Home
last modified time | relevance | path

Searched refs:fWidth (Results 1 – 25 of 543) 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 …]
DSkImageInfo.h186 , fWidth(0) in SkImageInfo()
233 int width() const { return fWidth; } in width()
240 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty()
246 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } in dimensions()
247 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } in bounds()
262 return Make(fWidth, fHeight, fColorType, newAlphaType, fColorSpace); in makeAlphaType()
266 return Make(fWidth, fHeight, newColorType, fAlphaType, fColorSpace); in makeColorType()
270 return Make(fWidth, fHeight, fColorType, fAlphaType, std::move(cs)); in makeColorSpace()
278 return sk_64_mul(fWidth, this->bytesPerPixel()); in minRowBytes64()
290 SkASSERT((unsigned)x < (unsigned)fWidth); in computeOffset()
[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 …]
DSkImageInfo.h150 , fWidth(0) in SkImageInfo()
197 int width() const { return fWidth; } in width()
204 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty()
210 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } in dimensions()
211 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } in bounds()
226 return Make(fWidth, fHeight, fColorType, newAlphaType, fColorSpace); in makeAlphaType()
230 return Make(fWidth, fHeight, newColorType, fAlphaType, fColorSpace); in makeColorType()
234 return Make(fWidth, fHeight, fColorType, fAlphaType, std::move(cs)); in makeColorSpace()
241 return sk_64_mul(fWidth, this->bytesPerPixel()); in minRowBytes64()
255 return fWidth == other.fWidth && fHeight == other.fHeight &&
[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 …]
DSkTaskGroup2D.cpp18 fWidth++; in addColumn()
30 SkASSERT(nextColumn <= fWidth); in work()
31 if (this->isFinishing() && nextColumn >= fWidth) { in work()
35 if (nextColumn < fWidth) { in work()
68 if (rowData.fNextColumn < fWidth) { in work()
DSkGlyph.h151 uint16_t fWidth, fHeight; variable
202 allocSize = BitsToBytes(fWidth) * fHeight; in allocImage()
206 allocSize = SkAlign4(fWidth) * fHeight; in allocImage()
210 allocSize = SkAlign4(fWidth) * fHeight * 3; in allocImage()
214 allocSize = fWidth * fHeight; in allocImage()
215 fImage = alloc->makeArrayDefault<uint32_t>(fWidth * fHeight); in allocImage()
219 allocSize = SkAlign2(fWidth) * fHeight; in allocImage()
231 return ComputeRowBytes(fWidth, (SkMask::Format)fMaskFormat); in rowBytes()
/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 …]
DSkTaskGroup2D.cpp18 fWidth++; in addColumn()
31 SkASSERT(workCol <= fWidth); in work()
32 if (this->isFinishing() && workCol >= fWidth) { in work()
37 if (workCol < fWidth && fKernel->work2D(threadId, workCol, threadId)) { in work()
64 while (rowData.fNextColumn < fWidth && in work()
71 if (rowData.fNextColumn == fWidth && this->isFinishing()) { in work()
DSkGlyph.h151 uint16_t fWidth, fHeight; variable
202 allocSize = BitsToBytes(fWidth) * fHeight; in allocImage()
206 allocSize = SkAlign4(fWidth) * fHeight; in allocImage()
210 allocSize = SkAlign4(fWidth) * fHeight * 3; in allocImage()
214 allocSize = fWidth * fHeight; in allocImage()
215 fImage = alloc->makeArrayDefault<uint32_t>(fWidth * fHeight); in allocImage()
219 allocSize = SkAlign2(fWidth) * fHeight; in allocImage()
231 return ComputeRowBytes(fWidth, (SkMask::Format)fMaskFormat); in rowBytes()
/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.cpp26 return desc.fWidth <= 0 && in is_valid_fully_lazy()
34 return ((desc.fWidth > 0 && desc.fHeight > 0) || in is_valid_partially_lazy()
35 (desc.fWidth <= 0 && desc.fHeight <= 0)) && in is_valid_partially_lazy()
40 return desc.fWidth > 0 && in is_valid_non_lazy()
51 , fWidth(desc.fWidth) in GrSurfaceProxy()
74 , fWidth(fTarget->width()) in GrSurfaceProxy()
126 desc.fWidth = fWidth; in createSurfaceImpl()
136 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createSurfaceImpl()
265 return fWidth; in worstCaseWidth()
267 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fWidth)); in worstCaseWidth()
[all …]
DGrBackendSurface.cpp70 : fWidth(width) in GrBackendTexture()
89 : fWidth(width) in GrBackendTexture()
100 : fWidth(width) in GrBackendTexture()
118 : fWidth(width) in GrBackendTexture()
156 : fWidth(width) in GrBackendRenderTarget()
171 : fWidth(width) in GrBackendRenderTarget()
184 : fWidth(width) in GrBackendRenderTarget()
/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.cpp26 return desc.fWidth <= 0 && in is_valid_fully_lazy()
34 return ((desc.fWidth > 0 && desc.fHeight > 0) || in is_valid_partially_lazy()
35 (desc.fWidth <= 0 && desc.fHeight <= 0)) && in is_valid_partially_lazy()
40 return desc.fWidth > 0 && in is_valid_non_lazy()
50 , fWidth(desc.fWidth) in GrSurfaceProxy()
73 , fWidth(fTarget->width()) in GrSurfaceProxy()
126 desc.fWidth = fWidth; in createSurfaceImpl()
237 return fWidth; in worstCaseWidth()
239 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fWidth)); in worstCaseWidth()
276 dstDesc.fWidth = srcRect.width(); in Copy()
[all …]
DGrBackendSurface.cpp21 : fWidth(width) in GrBackendTexture()
40 : fWidth(width) in GrBackendTexture()
51 : fWidth(width) in GrBackendTexture()
69 : fWidth(width) in GrBackendTexture()
107 : fWidth(width) in GrBackendRenderTarget()
122 : fWidth(width) in GrBackendRenderTarget()
135 : fWidth(width) in GrBackendRenderTarget()
/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/skqp/src/gpu/ccpr/
DGrCCAtlas.cpp86 fHeight = fWidth = initialSize;
101 fDrawBounds.fWidth = SkTMax(fDrawBounds.width(), loc->x() + w); in addRect()
117 SkASSERT(SkTMax(fWidth, fHeight) <= fMaxAtlasSize); in internalPlaceRect()
118 if (fWidth == fMaxAtlasSize && fHeight == fMaxAtlasSize) { in internalPlaceRect()
121 if (fHeight <= fWidth) { in internalPlaceRect()
124 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect()
126 int left = fWidth; in internalPlaceRect()
127 fWidth = SkTMin(fWidth * 2, fMaxAtlasSize); in internalPlaceRect()
128 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), left, 0, fWidth, fHeight); in internalPlaceRect()
141 desc.fWidth = fWidth; in finalize()
[all …]
/external/skia/src/gpu/ccpr/
DGrCCAtlas.cpp95 fHeight = fWidth = initialSize; in GrCCAtlas()
96 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
111 fDrawBounds.fWidth = SkTMax(fDrawBounds.width(), loc->x() + w); in addRect()
125 if (fWidth == fMaxAtlasSize && fHeight == fMaxAtlasSize) { in internalPlaceRect()
128 if (fHeight <= fWidth) { in internalPlaceRect()
131 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), 0, top, fWidth, fHeight); in internalPlaceRect()
133 int left = fWidth; in internalPlaceRect()
134 fWidth = SkTMin(fWidth * 2, fMaxAtlasSize); in internalPlaceRect()
135 fTopNode = skstd::make_unique<Node>(std::move(fTopNode), left, 0, fWidth, fHeight); in internalPlaceRect()
150 desc.fWidth = fWidth; in finalize()
[all …]
/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()
/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()
/external/skqp/include/private/
DSkSurfaceCharacterization.h39 , fWidth(0) in SkSurfaceCharacterization()
58 int width() const { return fWidth; } in width()
85 fWidth = width; in set()
99 int fWidth; variable
113 : fWidth(0) in SkSurfaceCharacterization()
118 int width() const { return fWidth; } in width()
125 int fWidth;
/external/skia/include/private/
DSkSurfaceCharacterization.h41 , fWidth(0) in SkSurfaceCharacterization()
64 int width() const { return fWidth; } in width()
89 , fWidth(width) in SkSurfaceCharacterization()
117 fWidth = width; in set()
132 int fWidth; variable
148 : fWidth(0) in SkSurfaceCharacterization()
155 int width() const { return fWidth; } in width()
162 int fWidth;
/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