Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/flutter/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 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 …]
/third_party/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 …]
/third_party/flutter/skia/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()
77 fHeight = height; in setRelativeTo()
80 SkASSERT(fHeight >= 0); in setRelativeTo()
87 fBottom + fHeight >= height; in contains()
90 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
92 && fHeight == -1; } in isInvalid()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCAtlas.cpp99 fHeight = 1 << ((log2area + 1) / 2); in GrCCAtlas()
103 fHeight = SkTClamp(fHeight, specs.fMinTextureSize, specs.fMaxPreferredTextureSize); in GrCCAtlas()
105 if (fWidth < specs.fMinWidth || fHeight < specs.fMinHeight) { in GrCCAtlas()
109 fHeight = SkTMin(specs.fMinHeight + kPadding, fMaxTextureSize); in GrCCAtlas()
112 fTopNode = skstd::make_unique<Node>(nullptr, 0, 0, fWidth, fHeight); in GrCCAtlas()
120 desc.fHeight = fHeight; in GrCCAtlas()
147 fDrawBounds.fHeight = SkTMax(fDrawBounds.height(), location.y() + devIBounds.height()); in addRect()
160 if (fWidth == fMaxTextureSize && fHeight == fMaxTextureSize) { in internalPlaceRect()
163 if (fHeight <= fWidth) { in internalPlaceRect()
164 int top = fHeight; in internalPlaceRect()
[all …]
/third_party/skia/src/gpu/
DGrNativeRect.h23 int fHeight; member
44 static_assert(12 == offsetof(GrNativeRect, fHeight)); in asInts()
49 SkIRect asSkIRect() const { return SkIRect::MakeXYWH(fX, fY, fWidth, fHeight); } in asSkIRect()
71 fHeight = height; in setRelativeTo()
74 SkASSERT(fHeight >= 0); in setRelativeTo()
81 fY + fHeight >= height; in contains()
84 void invalidate() {fX = fWidth = fY = fHeight = -1;} in invalidate()
86 && fHeight == -1; } in isInvalid()
DGrDynamicAtlas.cpp90 fHeight = std::min(SkNextPow2(initialSize.height()), fMaxAtlasSize); in reset()
140 fDrawBounds.fHeight = std::max(fDrawBounds.height(), location->y() + height); in addRect()
157 if (h > fHeight) { in internalPlaceRect()
158 fHeight = std::min(SkNextPow2(h), 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()
175 int top = fHeight; in internalPlaceRect()
176 fHeight = std::min(fHeight * 2, fMaxAtlasSize); in internalPlaceRect()
177 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()
/third_party/flutter/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()
81 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
/third_party/skia/bench/
DCompositingImagesBench.cpp57 fTileSize.fWidth, fTileSize.fHeight, fTileGridSize.fWidth, in CompositingImages()
58 fTileGridSize.fHeight, fLayerCnt); 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, in onPerCanvasPreDraw()
102 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight; in onPerCanvasPreDraw()
114 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint); in onPerCanvasPreDraw()
132 fTileGridSize.fWidth * fTileGridSize.fHeight); in onDraw()
138 for (int y = 0; y < fTileGridSize.fHeight; ++y) { in onDraw()
154 for (int y = 0; y < fTileGridSize.fHeight - 1; ++y) { in onDraw()
174 set[i++] = this->getAdjustedEntry(x, fTileGridSize.fHeight - 1, l, in onDraw()
[all …]
DImageCycleBench.cpp39 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw()
51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw()
70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw()
71 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw()
85 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; } in onGetSize()
/third_party/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 &&
109 SkScalar getHeight() const { return fHeight; } in getHeight()
110 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
133 SkScalar fHeight; member
/third_party/skia/modules/skparagraph/src/
DTextStyle.cpp51 if (fHeight != other.fHeight) { in equals()
100 nearlyEqual(fHeight, that.fHeight) && in equalsByFonts()
146 fHeight == other.fHeight && in matchOneAttribute()
147 fHeight == other.fHeight && in matchOneAttribute()
163 auto multiplier = fHeight * fFontSize; in getFontMetrics()
179 nearlyEqual(fHeight, other.fHeight) && in equals()
/third_party/flutter/skia/modules/skparagraph/include/
DParagraphStyle.h24 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
25 SkScalar getHeight() const { return fHeight; } in getHeight()
44 SkScalar fHeight; member
55 return this->fHeight == rhs.fHeight && this->fEllipsis == rhs.fEllipsis &&
78 SkScalar getHeight() const { return fHeight; } in getHeight()
79 void setHeight(SkScalar height) { fHeight = height; } in setHeight()
96 SkScalar fHeight; member
/third_party/flutter/skia/src/gpu/
DGrYUVProvider.cpp42 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
48 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
59 SkASSERT((yuvInfo.fSizeInfo.fWidthBytes[i] && yuvInfo.fSizeInfo.fSizes[i].fHeight) || in getPlanes()
60 (!yuvInfo.fSizeInfo.fWidthBytes[i] && !yuvInfo.fSizeInfo.fSizes[i].fHeight)); in getPlanes()
62 totalSize += yuvInfo.fSizeInfo.fWidthBytes[i] * yuvInfo.fSizeInfo.fSizes[i].fHeight; in getPlanes()
72 !yuvInfo.fSizeInfo.fSizes[i].fHeight); in getPlanes()
78 yuvInfo.fSizeInfo.fSizes[i-1].fHeight); in getPlanes()
130 int componentHeight = yuvSizeInfo.fSizes[i].fHeight; in refAsTextureProxy()
136 (componentHeight != yuvSizeInfo.fSizes[0].fHeight) in refAsTextureProxy()
157 SkASSERT(yuvTextureProxies[i]->height() == yuvSizeInfo.fSizes[i].fHeight); in refAsTextureProxy()
[all …]
DGrSurfaceProxy.cpp34 desc.fHeight <= 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()
47 desc.fHeight > 0 && in is_valid_non_lazy()
63 , fHeight(desc.fHeight) in GrSurfaceProxy()
95 , fHeight(fTarget->height()) in GrSurfaceProxy()
141 desc.fHeight = fHeight; in createSurfaceImpl()
153 int mipCount = SkMipMap::ComputeLevelCount(desc.fWidth, desc.fHeight) + 1; in createSurfaceImpl()
332 return fHeight; in worstCaseHeight()
334 return GrResourceProvider::MakeApprox(fHeight); in worstCaseHeight()
[all …]
DGrDataUtils.h38 , fHeight(info.height()) {} in GrPixelInfo()
41 : fColorInfo(ct, at, std::move(cs)), fWidth(w), fHeight(h) {} in GrPixelInfo()
70 int height() const { return fHeight; } in height()
86 auto rect = SkIRect::MakeXYWH(surfacePt->fX, surfacePt->fY, fWidth, fHeight); in clip()
95 fHeight = rect.height(); in clip()
99 bool isValid() const { return fColorInfo.isValid() && fWidth > 0 && fHeight > 0; } in isValid()
104 int fHeight = 0; variable
/third_party/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()
/third_party/flutter/skia/src/gpu/mock/
DGrMockTexture.h54 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockTexture()
55 , INHERITED(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected,
81 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockRenderTarget()
82 , INHERITED(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, sampleCnt, isProtected)
90 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockRenderTarget()
91 , INHERITED(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, sampleCnt, isProtected)
126 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockRenderTarget()
127 , INHERITED(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, sampleCnt, isProtected)
143 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockTextureRenderTarget()
154 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, isProtected) in GrMockTextureRenderTarget()
/third_party/flutter/skia/modules/skparagraph/src/
DFontResolver.h21 : fFont(font), fHeight(height), fStart(EMPTY_INDEX) {} in FontDescr()
23 return this->fFont == a.fFont && this->fHeight == a.fHeight;
26 SkScalar fHeight; member
51 SkScalarCeilToInt(key.fHeight); in operator()
DTextStyle.cpp23 fHeight = 1.0; in TextStyle()
50 if (fHeight != other.fHeight) { in equals()
117 fFontSize == other.fFontSize && fHeight == other.fHeight; in matchOneAttribute()
129 auto multiplier = fHeight * fFontSize; in getFontMetrics()
/third_party/flutter/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 …]
/third_party/skia/tests/
DVkDrawableTest.cpp42 , fHeight(height) {} in TestDrawable()
52 , fHeight(height) {} in DrawHandlerBasic()
69 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
84 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; in draw()
89 int32_t fHeight; 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/4, 0, td->fWidth/4, td->fHeight); in ImportDraw()
161 SkRect srcRect = SkRect::MakeIWH(td->fWidth/4, td->fHeight); in ImportDraw()
200 draw = std::make_unique<DrawHandlerBasic>(fInterface, fWidth, fHeight); in onSnapGpuDrawHandler()
206 return SkRect::MakeLTRB(fWidth / 2, 0, fWidth, fHeight); in onGetBounds()
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlRenderTarget.mm24 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
26 gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, sampleCnt, GrProtected::kNo)
37 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
38 , GrRenderTarget(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, 1, GrProtected::kNo)
50 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
52 gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, sampleCnt, GrProtected::kNo)
61 : GrSurface(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, GrProtected::kNo)
62 , GrRenderTarget(gpu, {desc.fWidth, desc.fHeight}, desc.fConfig, 1, GrProtected::kNo)
84 texDesc.height = desc.fHeight;
/third_party/flutter/skia/samplecode/
DSample.cpp24 if (fWidth != width || fHeight != height) in setSize()
27 fHeight = height; in setSize()
33 if (fWidth && fHeight) { in draw()
35 r.set(0, 0, fWidth, fHeight); in draw()
68 if (point.x() < 0 || point.y() < 0 || point.x() >= fWidth || point.y() >= fHeight) { in mouse()

12345678910>>...17