Home
last modified time | relevance | path

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

12345678910

/external/skia/include/core/
DSkSize.h18 int32_t fHeight; member
28 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero()
31 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty()
34 void setEmpty() { fWidth = fHeight = 0; } in setEmpty()
37 constexpr int32_t height() const { return fHeight; } in height()
39 constexpr int64_t area() const { return SkToS64(fWidth) * SkToS64(fHeight); } in area()
41 bool equals(int32_t w, int32_t h) const { return fWidth == w && fHeight == h; } in equals()
45 return a.fWidth == b.fWidth && a.fHeight == b.fHeight;
54 SkScalar fHeight; member
68 bool isZero() const { return 0 == fWidth && 0 == fHeight; } in isZero()
[all …]
DSkPixelRef.h33 SkISize dimensions() const { return {fWidth, fHeight}; } in dimensions()
35 int height() const { return fHeight; } in height()
87 int fHeight; variable
/external/skia/bench/
DCompositingImagesBench.cpp59 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages()
60 fTileGridSize.fHeight, fLayerCnt); in CompositingImages()
62 fName.appendf("_image_%dx%d", imageSize.fWidth, imageSize.fHeight); in CompositingImages()
101 auto ii = SkImageInfo::Make(fImageSize.fWidth, fImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw()
104 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight; in onPerCanvasPreDraw()
116 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint); in onPerCanvasPreDraw()
134 fTileGridSize.fWidth * fTileGridSize.fHeight); in onDraw()
140 for (int y = 0; y < fTileGridSize.fHeight; ++y) { in onDraw()
156 for (int y = 0; y < fTileGridSize.fHeight - 1; ++y) { in onDraw()
176 set[i++] = this->getAdjustedEntry(x, fTileGridSize.fHeight - 1, l, in onDraw()
[all …]
DImageCycleBench.cpp41 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw()
53 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw()
72 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
73 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
85 SkISize onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
/external/skia/src/gpu/ganesh/
DGrNativeRect.h24 int fHeight; member
45 static_assert(12 == offsetof(GrNativeRect, fHeight)); in asInts()
50 SkIRect asSkIRect() const { return SkIRect::MakeXYWH(fX, fY, fWidth, fHeight); } in asSkIRect()
72 fHeight = height; in setRelativeTo()
75 SkASSERT(fHeight >= 0); in setRelativeTo()
82 fY + fHeight >= height; in contains()
85 void invalidate() {fX = fWidth = fY = fHeight = -1;} in invalidate()
87 && fHeight == -1; } in isInvalid()
DGrDynamicAtlas.cpp103 fHeight = std::min(SkNextPow2(initialSize.height()), fMaxAtlasSize); in reset()
154 fDrawBounds.fHeight = std::max(fDrawBounds.height(), location->y() + height); in addRect()
171 if (h > fHeight) { in internalPlaceRect()
172 fHeight = std::min(SkNextPow2(h), fMaxAtlasSize); in internalPlaceRect()
174 fTopNode = this->makeNode(nullptr, 0, 0, fWidth, fHeight); in internalPlaceRect()
185 if (fWidth >= fMaxAtlasSize && fHeight >= fMaxAtlasSize) { in internalPlaceRect()
188 if (fHeight <= fWidth) { in internalPlaceRect()
189 int top = fHeight; in internalPlaceRect()
190 fHeight = std::min(fHeight * 2, fMaxAtlasSize); in internalPlaceRect()
191 fTopNode = this->makeNode(fTopNode, 0, top, fWidth, fHeight); in internalPlaceRect()
[all …]
DGrScissorState.h48 logicalDimensions.fHeight <= fRTSize.fHeight); in relaxTest()
50 fRect.fBottom >= logicalDimensions.fHeight) { in relaxTest()
68 fRect.fRight < fRTSize.fWidth || fRect.fBottom < fRTSize.fHeight; in enabled()
DGrBackendSurface.cpp283 , fHeight(height) in GrBackendTexture()
298 , fHeight(height) in GrBackendTexture()
336 fHeight = that.fHeight; in operator =()
469 t0.fHeight != t1.fHeight || in TestingOnly_Equals()
510 , fHeight(height) in GrBackendRenderTarget()
524 , fHeight(height) in GrBackendRenderTarget()
561 fHeight = that.fHeight; in operator =()
671 r0.fHeight != r1.fHeight || in TestingOnly_Equals()
/external/pdfium/xfa/fwl/theme/
Dcfwl_checkboxtp.cpp103 const float fHeight = rtSign.height; in DrawSignDiamond() local
106 path.LineTo(CFX_PointF(rtSign.left, rtSign.top + fHeight / 2)); in DrawSignDiamond()
108 path.LineTo(CFX_PointF(rtSign.right(), rtSign.top + fHeight / 2)); in DrawSignDiamond()
165 float fHeight = -kSignPath; in EnsureCheckPathInitialized() local
167 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in EnsureCheckPathInitialized()
168 CFX_PointF pt2(fWidth / 4.5f, fBottom + fHeight / 16.0f); in EnsureCheckPathInitialized()
170 CFX_PointF pt4(fWidth * 14 / 15.0f, fBottom + fHeight * 15 / 16.0f); in EnsureCheckPathInitialized()
171 CFX_PointF pt5(fWidth / 3.6f, fBottom + fHeight / 3.5f); in EnsureCheckPathInitialized()
172 CFX_PointF pt12(fWidth / 7.0f, fBottom + fHeight * 2 / 7.0f); in EnsureCheckPathInitialized()
173 CFX_PointF pt21(fWidth / 5.0f, fBottom + fHeight / 5.0f); in EnsureCheckPathInitialized()
[all …]
/external/skia/modules/skparagraph/include/
DParagraphStyle.h33 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
34 SkScalar getHeight() const { return fHeight; } in getHeight()
57 nearlyEqual(this->fHeight, rhs.fHeight) &&
68 SkScalar fHeight; member
82 return this->fHeight == rhs.fHeight &&
110 SkScalar getHeight() const { return fHeight; } in getHeight()
111 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
138 SkScalar fHeight; member
/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/modules/skparagraph/src/
DTextStyle.cpp55 if (fHeight != other.fHeight) { in equals()
111 nearlyEqual(fHeight, that.fHeight) && in equalsByFonts()
157 fHeight == other.fHeight && in matchOneAttribute()
174 auto multiplier = fHeight * fFontSize; in getFontMetrics()
199 nearlyEqual(fHeight, other.fHeight) && in equals()
/external/skia/tests/
DVkDrawableTest.cpp60 , fHeight(height) {} in TestDrawable()
70 , fHeight(height) {} in DrawHandlerBasic()
87 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
102 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
107 int32_t fHeight; member in TestDrawable::DrawHandlerBasic
167 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw()
183 SkRect dstRect = SkRect::MakeXYWH(td->fWidth/4, 0, td->fWidth/4, td->fHeight); in ImportDraw()
184 SkRect srcRect = SkRect::MakeIWH(td->fWidth/4, td->fHeight); in ImportDraw()
191 dstRect = SkRect::MakeXYWH(3*td->fWidth/4, 0, td->fWidth/4, td->fHeight); in ImportDraw()
232 draw = std::make_unique<DrawHandlerBasic>(fInterface, fWidth, fHeight); in onSnapGpuDrawHandler()
[all …]
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()
/external/skia/src/gpu/
DAtlasTypes.cpp30 , fHeight(height) in Plot()
34 , fOffset(SkIPoint16::Make(fX * fWidth, fY * fHeight)) in Plot()
54 SkASSERT(width <= fWidth && height <= fHeight); in addRect()
74 sk_calloc_throw(fBytesPerPixel * fWidth * fHeight)); in dataAt()
81 topLeft.fY >= fOffset.fY && topLeft.fY < fOffset.fY + fHeight); in dataAt()
92 sk_calloc_throw(fBytesPerPixel * fWidth * fHeight)); in prepForRender()
94 pixmap->reset(SkImageInfo::Make(fWidth, fHeight, fColorType, kOpaque_SkAlphaType), in prepForRender()
169 sk_bzero(fData, fBytesPerPixel * fWidth * fHeight); in resetRects()
DRectanizer.h17 Rectanizer(int width, int height) : fWidth(width), fHeight(height) { in Rectanizer()
27 int height() const { return fHeight; } in height()
50 const int fHeight; variable
/external/skia/src/gpu/graphite/
DRasterPathAtlas.cpp27 , fCachedAtlasMgr(fWidth, fHeight, fWidth, fHeight, recorder->priv().caps()) in RasterPathAtlas()
29 std::max(fHeight/2, kSmallPathPlotHeight), in RasterPathAtlas()
32 , fUncachedAtlasMgr(fWidth, fHeight, fWidth, fHeight, recorder->priv().caps()) { in RasterPathAtlas()
DComputeTypes.h52 , fHeight(height) in WorkgroupSize()
55 uint32_t scalarSize() const { return fWidth * fHeight * fDepth; } in scalarSize()
58 uint32_t fHeight = 1; member
/external/skia/include/gpu/ganesh/
DGrBackendSurface.h173 SkISize dimensions() const { return {fWidth, fHeight}; } in dimensions()
175 int height() const { return fHeight; } in height()
241 , fHeight(height) in GrBackendTexture()
268 int fHeight; //<! height in pixels variable
305 SkISize dimensions() const { return {fWidth, fHeight}; } in dimensions()
307 int height() const { return fHeight; } in height()
370 , fHeight(height) in GrBackendRenderTarget()
396 int fHeight; //<! height in pixels variable
/external/skia/modules/skottie/src/effects/
DBulgeEffect.cpp106 SG_ATTRIBUTE(Height , float , fHeight)
126 if (fHeight == 0) { in buildEffectShader()
131 float adjHeight = std::abs(fHeight)/4; in buildEffectShader()
140 builder.uniform("u_selector") = (fHeight > 0 ? 1.0f : -1.0f); in buildEffectShader()
154 if (fHeight == 0) { in onRender()
179 float fHeight = 0; member in skottie::internal::__anona0be934b0111::BulgeNode
/external/skia/tools/window/android/
DRasterWindowContext_android.cpp44 fHeight = ANativeWindow_getHeight(fNativeWindow); in RasterWindowContext_android()
60 ANativeWindow_setBuffersGeometry(fNativeWindow, fWidth, fHeight, format); in setBuffersGeometry()
70 fHeight = h; in resize()
79 fHeight, in getBackbufferSurface()
/external/pdfium/xfa/fxfa/
Dcxfa_textlayout.cpp314 CFX_SizeF szMax(m_pLoader->fWidth, m_pLoader->fHeight); in GetLayoutHeight()
322 float fHeight = m_pLoader->fHeight; in GetLayoutHeight() local
323 if (fHeight < 0.1f) { in GetLayoutHeight()
324 fHeight = 0; in GetLayoutHeight()
326 fHeight += value; in GetLayoutHeight()
328 return fHeight; in GetLayoutHeight()
377 if (m_Blocks.empty() && m_pLoader->fHeight > 0) { in DoSplitLayout()
378 float fHeight = fTextHeight - GetLayoutHeight(); in DoSplitLayout() local
379 if (fHeight > 0) { in DoSplitLayout()
382 fHeight /= 2.0f; in DoSplitLayout()
[all …]
/external/skia/modules/svg/src/
DSkSVGPattern.cpp77 inherit_if_needed(currentNode->fHeight , attrs->fHeight) | in resolveHref()
105 attrs.fHeight.isValid() ? *attrs.fHeight : SkSVGLength(0)); in onAsPaint()
/external/skia/experimental/webgpu-bazel/src/
Dbindings.cpp116 fHeight = height; in init()
134 GrBackendRenderTarget backendRenderTarget(fWidth, fHeight, 1, 8, rtInfo); in draw()
170 float y = (float)fHeight / 2.f; in drawGradient()
182 uniforms.height = fHeight; in drawRuntimeEffect()
193 int fHeight; member in Demo
/external/skia/tools/window/
DWindowContext.h56 int height() const { return fHeight; } in height()
57 SkISize dimensions() const { return {fWidth, fHeight}; } in dimensions()
73 int fHeight; variable

12345678910