Home
last modified time | relevance | path

Searched refs:fHeight (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/external/skqp/include/core/
DSkSize.h15 int32_t fHeight; 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()
34 int32_t height() const { return fHeight; } in height()
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;
49 SkScalar fHeight; 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.h15 int32_t fHeight; 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()
34 constexpr int32_t height() const { return fHeight; } in height()
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;
51 SkScalar fHeight; member
65 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero()
[all …]
/external/skqp/src/gpu/gl/
DGrGLIRect.h24 GrGLsizei fHeight; member
35 GR_STATIC_ASSERT(12 == offsetof(GrGLIRect, fHeight)); 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()
70 fBottom = glRect.fBottom + (glRect.fHeight - topOffset - height); in setRelativeTo()
74 fHeight = height; in setRelativeTo()
77 SkASSERT(fHeight >= 0); in setRelativeTo()
84 fBottom + fHeight >= glRect.fBottom + glRect.fHeight; in contains()
87 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
89 && fHeight == -1; } in isInvalid()
/external/skqp/src/gpu/ccpr/
DGrCCAtlas.cpp63 fHeight = 1 << ((log2area + 1) / 2); in GrCCAtlas()
67 fHeight = SkTClamp(fHeight, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in GrCCAtlas()
69 if (fWidth < specs.fMinWidth || fHeight < specs.fMinHeight) { in GrCCAtlas()
73 fHeight = SkTMin(specs.fMinHeight + kPadding, fMaxTextureSize); in GrCCAtlas()
76 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
94 desc.fHeight = fHeight; in GrCCAtlas()
117 fDrawBounds.fHeight = SkTMax(fDrawBounds.height(), location.y() + devIBounds.height()); in addRect()
130 if (fWidth == fMaxTextureSize && fHeight == fMaxTextureSize) { in internalPlaceRect()
133 if (fHeight <= fWidth) { in internalPlaceRect()
134 int top = fHeight; in internalPlaceRect()
[all …]
/external/skia/src/gpu/
DGrDynamicAtlas.cpp86 fHeight = std::min(SkNextPow2(initialSize.height()), fMaxAtlasSize); in reset()
94 {fWidth, fHeight}, format, GrRenderable::kYes, sampleCount, in reset()
114 fDrawBounds.fHeight = std::max(fDrawBounds.height(), location.y() + devIBounds.height()); in addRect()
131 if (h > fHeight) { in internalPlaceRect()
132 fHeight = std::min(SkNextPow2(h), 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()
149 int top = fHeight; in internalPlaceRect()
150 fHeight = std::min(fHeight * 2, fMaxAtlasSize); in internalPlaceRect()
[all …]
DGrNativeRect.h23 int fHeight; member
47 static_assert(12 == offsetof(GrNativeRect, fHeight)); in asInts()
52 SkIRect asSkIRect() const { return SkIRect::MakeXYWH(fX, fY, fWidth, fHeight); } in asSkIRect()
74 fHeight = height; in setRelativeTo()
77 SkASSERT(fHeight >= 0); in setRelativeTo()
84 fY + fHeight >= height; in contains()
87 void invalidate() {fX = fWidth = fY = fHeight = -1;} in invalidate()
89 && fHeight == -1; } in isInvalid()
DGrYUVProvider.cpp43 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
49 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
60 SkASSERT((yuvInfo.fSizeInfo.fWidthBytes[i] && yuvInfo.fSizeInfo.fSizes[i].fHeight) || in getPlanes()
61 (!yuvInfo.fSizeInfo.fWidthBytes[i] && !yuvInfo.fSizeInfo.fSizes[i].fHeight)); in getPlanes()
63 totalSize += yuvInfo.fSizeInfo.fWidthBytes[i] * yuvInfo.fSizeInfo.fSizes[i].fHeight; in getPlanes()
73 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
79 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
131 int componentHeight = yuvSizeInfo.fSizes[i].fHeight; in refAsTextureProxyView()
137 (componentHeight != yuvSizeInfo.fSizes[0].fHeight) in refAsTextureProxyView()
190 yuvSizeInfo.fSizes[0].fHeight); in refAsTextureProxyView()
DGrBackendSurface.cpp329 , fHeight(height) in GrBackendTexture()
351 , fHeight(height) in GrBackendTexture()
371 , fHeight(height) in GrBackendTexture()
384 , fHeight(height) in GrBackendTexture()
407 , fHeight(height) in GrBackendTexture()
443 fHeight = that.fHeight; in operator =()
652 t0.fHeight != t1.fHeight || in TestingOnly_Equals()
698 , fHeight(height) in GrBackendRenderTarget()
734 , fHeight(height) in GrBackendRenderTarget()
749 , fHeight(height) in GrBackendRenderTarget()
[all …]
/external/skia/bench/
DCompositingImagesBench.cpp53 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages()
54 fTileGridSize.fHeight, fLayerCnt); 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()
134 for (int y = 0; y < fTileGridSize.fHeight; ++y) { in onDraw()
150 for (int y = 0; y < fTileGridSize.fHeight - 1; ++y) { in onDraw()
170 set[i++] = this->getAdjustedEntry(x, fTileGridSize.fHeight - 1, l, in onDraw()
[all …]
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()
69 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
70 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
83 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
/external/skia/modules/skparagraph/include/
DParagraphStyle.h25 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
26 SkScalar getHeight() const { return fHeight; } in getHeight()
45 nearlyEqual(this->fHeight, rhs.fHeight) &&
56 SkScalar fHeight; member
67 return this->fHeight == rhs.fHeight && this->fEllipsis == rhs.fEllipsis &&
91 SkScalar getHeight() const { return fHeight; } in getHeight()
92 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
109 SkScalar fHeight; member
/external/pdfium/xfa/fwl/theme/
Dcfwl_checkboxtp.cpp100 float fHeight = rtSign.height; in DrawSignDiamond() local
103 path.LineTo(CFX_PointF(rtSign.left, rtSign.top + fHeight / 2)); in DrawSignDiamond()
105 path.LineTo(CFX_PointF(rtSign.right(), rtSign.top + fHeight / 2)); in DrawSignDiamond()
166 float fHeight = -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()
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()
173 CFX_PointF pt12(fWidth / 7.0f, fBottom + fHeight * 2 / 7.0f); in InitCheckPath()
174 CFX_PointF pt21(fWidth / 5.0f, fBottom + fHeight / 5.0f); in InitCheckPath()
[all …]
/external/skqp/bench/
DCompositingImagesBench.cpp27 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages()
28 fTileGridSize.fHeight, fLayerCnt); 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()
70 for (int y = 0; y < fTileGridSize.fHeight; ++y) { in onDraw()
73 y * fTileSize.fHeight + o, &paint); in onDraw()
90 SkScalarCeilToInt(fTileSize.fHeight * fTileGridSize.fHeight + 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()
69 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
70 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
81 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
/external/skqp/src/gpu/
DGrYUVProvider.cpp40 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
46 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
57 SkASSERT((yuvInfo.fSizeInfo.fWidthBytes[i] && yuvInfo.fSizeInfo.fSizes[i].fHeight) || in getPlanes()
58 (!yuvInfo.fSizeInfo.fWidthBytes[i] && !yuvInfo.fSizeInfo.fSizes[i].fHeight)); in getPlanes()
60 totalSize += yuvInfo.fSizeInfo.fWidthBytes[i] * yuvInfo.fSizeInfo.fSizes[i].fHeight; in getPlanes()
70 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
76 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
128 int componentHeight = yuvSizeInfo.fSizes[i].fHeight; in refAsTextureProxy()
134 (componentHeight != yuvSizeInfo.fSizes[0].fHeight) in refAsTextureProxy()
155 SkASSERT(yuvTextureProxies[i]->height() == yuvSizeInfo.fSizes[i].fHeight); in refAsTextureProxy()
[all …]
DGrSurfaceProxy.cpp31 desc.fHeight <= 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()
45 desc.fHeight > 0 && in is_valid_non_lazy()
59 , fHeight(desc.fHeight) in GrSurfaceProxy()
89 , fHeight(fTarget->height()) in GrSurfaceProxy()
142 desc.fHeight = fHeight; in createSurfaceImpl()
159 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createSurfaceImpl()
320 return fHeight; in worstCaseHeight()
322 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fHeight)); in worstCaseHeight()
[all …]
DGrBackendSurface.cpp187 , fHeight(height) in GrBackendTexture()
202 , fHeight(height) in GrBackendTexture()
215 , fHeight(height) in GrBackendTexture()
227 , fHeight(height) in GrBackendTexture()
256 fHeight = that.fHeight; in operator =()
383 t0.fHeight != t1.fHeight || in TestingOnly_Equals()
447 , fHeight(height) in GrBackendRenderTarget()
462 , fHeight(height) in GrBackendRenderTarget()
476 , fHeight(height) in GrBackendRenderTarget()
492 , fHeight(height) in GrBackendRenderTarget()
[all …]
DGrTextureProducer.h37 int fHeight; member
108 int height() const { return fHeight; } in height()
120 , fHeight(height) in GrTextureProducer()
133 builder[2] = copyParams.fHeight; in MakeCopyKeyFromOrigKey()
186 const int fHeight; variable
/external/skia/modules/skparagraph/src/
DTextStyle.cpp23 fHeight = 1.0; in TextStyle()
70 if (fHeight != other.fHeight) { in equals()
113 nearlyEqual(fHeight, that.fHeight) && in equalsByFonts()
157 fFontSize == other.fFontSize && fHeight == other.fHeight; in matchOneAttribute()
171 auto multiplier = fHeight * fFontSize; in getFontMetrics()
184 nearlyEqual(fHeight, other.fHeight) && in equals()
/external/skia/tools/
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()
44 for (int y = 0; y < dim.fHeight; ++y) { in main()
52 ((uint64_t)255 * 4 * (uint64_t)dim.fWidth * (uint64_t)dim.fHeight)); in main()
/external/skia/tests/
DVkDrawableTest.cpp39 , fHeight(height) {} in TestDrawable()
49 , fHeight(height) {} in DrawHandlerBasic()
66 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
81 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
86 int32_t fHeight; 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()
195 draw.reset(new DrawHandlerBasic(fInterface, fWidth, fHeight)); in onSnapGpuDrawHandler()
201 return SkRect::MakeLTRB(fWidth / 2, 0, fWidth, fHeight); in onGetBounds()
[all …]
/external/skqp/tests/
DVkDrawableTest.cpp39 , fHeight(height) {} in TestDrawable()
49 , fHeight(height) {} in DrawHandlerBasic()
66 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
81 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
86 int32_t fHeight; 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()
195 draw.reset(new DrawHandlerBasic(fInterface, fWidth, fHeight)); in onSnapGpuDrawHandler()
201 return SkRect::MakeLTRB(fWidth / 2, 0, fWidth, fHeight); in onGetBounds()
[all …]
/external/skqp/src/core/
DSkCoverageDelta.cpp20 fAntiRect.fHeight = 0; in SkCoverageDeltaList()
70 fAntiRect.fHeight = 0; in SkCoverageDeltaMask()
91 if (fAntiRect.fHeight && iy == fAntiRect.fY - fBounds.fTop) { in convertCoverageToAlpha()
94 for(int i = 0; i < fAntiRect.fHeight; ++i) { in convertCoverageToAlpha()
108 deltaRow += fExpandedWidth * fAntiRect.fHeight; in convertCoverageToAlpha()
109 iy += fAntiRect.fHeight - 1; // -1 because we'll ++iy after continue in convertCoverageToAlpha()
DSkGlyph.cpp18 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask()
27 fHeight = 0; in zeroMetrics()
81 size_t size = this->rowBytes() * fHeight; in computeImageSize()
93 fHeight = from.fHeight; in copyImageData()
/external/pdfium/xfa/fxfa/
Dcxfa_textlayout.cpp276 CFX_SizeF szMax(m_pLoader->fWidth, m_pLoader->fHeight); in GetLayoutHeight()
284 float fHeight = m_pLoader->fHeight; in GetLayoutHeight() local
285 if (fHeight < 0.1f) { in GetLayoutHeight()
286 fHeight = 0; in GetLayoutHeight()
288 fHeight += value; in GetLayoutHeight()
290 return fHeight; in GetLayoutHeight()
338 if (m_Blocks.empty() && m_pLoader->fHeight > 0) { in DoSplitLayout()
339 float fHeight = fTextHeight - GetLayoutHeight(); in DoSplitLayout() local
340 if (fHeight > 0) { in DoSplitLayout()
343 fHeight /= 2.0f; in DoSplitLayout()
[all …]

12345678910>>...17