/third_party/skia/include/core/ |
H A D | SkSize.h | 15 int32_t fHeight; member 23 /** Returns true iff fWidth == 0 && fHeight == 0 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; in operator ==() 51 SkScalar fHeight; global() member [all...] |
H A D | SkPixelRef.h | 37 SkISize dimensions() const { return {fWidth, fHeight}; } in dimensions() 39 int height() const { return fHeight; } in height() 91 int fHeight; member in SkPixelRef
|
/third_party/skia/bench/ |
H A D | CompositingImagesBench.cpp | 57 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, 102 int numImages = fLayerCnt * fTileGridSize.fWidth * fTileGridSize.fHeight; 114 SkRect::MakeLTRB(3, 3, fTileSize.fWidth - 3, fTileSize.fHeight - 3), paint); 132 fTileGridSize.fWidth * fTileGridSize.fHeight); 138 for (int y = 0; y < fTileGridSize.fHeight; ++y) { 154 for (int y = 0; y < fTileGridSize.fHeight - 1; ++y) { 174 set[i++] = this->getAdjustedEntry(x, fTileGridSize.fHeight [all...] |
H A D | ImageCycleBench.cpp | 39 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, 51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); 70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); 71 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); 85 SkIPoint onGetSize() override { return {kDeviceSize.fWidth, kDeviceSize.fHeight}; }
|
/third_party/skia/src/gpu/ |
H A D | GrDynamicAtlas.cpp | 90 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 * in internalPlaceRect() [all...] |
H A D | GrNativeRect.h | 23 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()
|
H A D | GrRectanizer.h | 17 GrRectanizer(int width, int height) : fWidth(width), fHeight(height) { in GrRectanizer() 27 int height() const { return fHeight; } in height() 41 const int fHeight; member in GrRectanizer
|
H A D | GrScissorState.h | 48 logicalDimensions.fHeight <= fRTSize.fHeight); in relaxTest() 50 fRect.fBottom >= logicalDimensions.fHeight) { in relaxTest() 68 fRect.fRight < fRTSize.fWidth || fRect.fBottom < fRTSize.fHeight; in enabled()
|
H A D | GrBackendSurface.cpp | 458 , fHeight(height) in GrBackendTexture() 504 , fHeight(height) in GrBackendTexture() 520 , fHeight(height) in GrBackendTexture() 541 , fHeight(height) in GrBackendTexture() 561 , fHeight(height) in GrBackendTexture() 585 , fHeight(height) in GrBackendTexture() 627 fHeight = that.fHeight; in operator =() 871 t0.fHeight != t1.fHeight || in TestingOnly_Equals() [all...] |
/third_party/skia/modules/skparagraph/include/ |
H A D | ParagraphStyle.h | 61 void setHeight(SkScalar height) { fHeight = height; } in setHeight() 62 SkScalar getHeight() const { return fHeight; } in getHeight() 91 nearlyEqual(this->fHeight, rhs.fHeight) && in operator ==() 108 SkScalar fHeight; member 114 // false: scale ascent/descent with fHeight. 124 return this->fHeight == rhs.fHeight && in operator ==() 158 SkScalar getHeight() const { return fHeight; } in getHeight() 159 void setHeight(SkScalar height) { fHeight in getHeight() 195 SkScalar fHeight; global() member [all...] |
/third_party/skia/tools/ |
H A D | image_diff_metric.cpp | 29 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/skia/tests/ |
H A D | VkDrawableTest.cpp | 42 , fHeight(height) {} in TestDrawable() 52 , fHeight(height) {} in DrawHandlerBasic() 69 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; 84 vkInfo.fDrawBounds->extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; 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); 206 return SkRect::MakeLTRB(fWidth / 2, 0, fWidth, fHeight); 218 int32_t fHeight; global() member in TestDrawable [all...] |
H A D | SizeTest.cpp | 31 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in DEF_TEST() 57 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in DEF_TEST()
|
/third_party/skia/modules/skparagraph/src/ |
H A D | TextStyle.cpp | 58 if (fHeight != other.fHeight) { in equals() 117 nearlyEqual(fHeight, that.fHeight) && in equalsByFonts() 165 fHeight == other.fHeight && in matchOneAttribute() 210 auto multiplier = fHeight * fFontSize; in getFontMetrics() 235 nearlyEqual(fHeight, other.fHeight) && in getFontMetrics()
|
/third_party/skia/modules/skottie/src/effects/ |
H A D | BuldgeEffect.cpp | 81 SG_ATTRIBUTE(Height , float , fHeight) 101 if (fHeight == 0) { in buildEffectShader() 106 float adjHeight = std::abs(fHeight)/4; in buildEffectShader() 116 builder.uniform("u_selector") = (fHeight > 0 ? 1.0f : -1.0f); in buildEffectShader() 132 if (fHeight == 0) { 157 float fHeight = 0; member in skottie::internal::__anon18543::final
|
/third_party/skia/tools/sk_app/android/ |
H A D | RasterWindowContext_android.cpp | 44 fHeight = ANativeWindow_getHeight(fNativeWindow); in RasterWindowContext_android() 60 ANativeWindow_setBuffersGeometry(fNativeWindow, fWidth, fHeight, format); in setBuffersGeometry() 70 fHeight = h; in resize() 78 SkImageInfo info = SkImageInfo::Make(fWidth, fHeight, in getBackbufferSurface()
|
/third_party/skia/experimental/skrive/src/ |
H A D | Ellipse.cpp | 38 if (SkScalarNearlyEqual(fWidth, fHeight)) { in onDraw() 41 canvas->drawOval(SkRect::MakeXYWH(-fWidth * 0.5f, -fHeight * 0.5f, fWidth, fHeight), paint); in onDraw()
|
/third_party/skia/include/private/ |
H A D | SkEncodedInfo.h | 173 return SkImageInfo::Make(fWidth, fHeight, ct, alpha, std::move(cs)); in makeImageInfo() 177 int height() const { return fHeight; } in height() 223 auto copy = SkEncodedInfo::Make(fWidth, fHeight, fColor, fAlpha, fBitsPerComponent); in copy() 234 , fHeight(height) in SkEncodedInfo() 242 int fHeight; member
|
/third_party/skia/samplecode/ |
H A D | Sample.h | 39 , fWidth(0), fHeight(0) in Sample() 46 SkScalar height() const { return fHeight; } in height() 49 void setWidth(SkScalar width) { this->setSize(width, fHeight); } in setWidth() 99 SkScalar fWidth, fHeight; member in Sample
|
H A D | Sample.cpp | 24 if (fWidth != width || fHeight != height) in setSize() 27 fHeight = height; in setSize() 33 if (fWidth && fHeight) { in draw() 35 r.setLTRB(0, 0, fWidth, fHeight); in draw()
|
/third_party/skia/tools/sk_app/ |
H A D | DawnWindowContext.cpp | 37 fHeight = height; in initializeContext() 75 GrBackendRenderTarget backendRenderTarget(fWidth, fHeight, fDisplayParams.fMSAASampleCount, 8, in getBackbufferSurface() 93 fHeight = h; in resize() 102 fSwapChain.Configure(fSwapChainFormat, kUsage, fWidth, fHeight); in resize()
|
/third_party/skia/modules/skplaintexteditor/include/ |
H A D | editor.h | 28 int getHeight() const { return fHeight; } in getHeight() 56 int lineHeight(size_t index) const { return fLines[index].fHeight; } in lineHeight() 110 int fHeight = 0; member 118 int fHeight = 0; member in SkPlainTextEditor::Editor
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGPattern.cpp | 70 inherit_if_needed(currentNode->fHeight , attrs->fHeight) | in resolveHref() 98 attrs.fHeight.isValid() ? *attrs.fHeight : SkSVGLength(0)); in onAsPaint()
|
/third_party/skia/modules/skplaintexteditor/app/ |
H A D | editor_application.cpp | 99 int fHeight = 0; // window height member 126 canvas->clipRect({0, 0, (float)fWidth, (float)fHeight}); 148 if (SkISize{fWidth, fHeight} != SkISize{width, height}) { 149 fHeight = height; 161 int maxPos = std::max(0, fEditor.getHeight() + 2 * fMargin - fHeight / 2); in scroll() 293 if (fPos < cursor.bottom() - fHeight + 2 * fMargin) { in move() 294 fPos = cursor.bottom() - fHeight + 2 * fMargin; in move() 318 return this->scroll(fHeight * 4 / 5); 320 return this->scroll(-fHeight * 4 / 5);
|
/third_party/skia/gm/ |
H A D | complexclip2.cpp | 42 fHeight = yF - yA; in ComplexClip2GM() 45 fTotalHeight = kRows * fHeight + SK_Scalar1 * (kRows + 1) * kPadY; in ComplexClip2GM() 155 kPadY * SK_Scalar1 + (fHeight + kPadY * SK_Scalar1)*i); 193 canvas->drawRect(SkRect::MakeWH(fWidth, fHeight), fillPaint); 207 SkScalar fHeight; member in skiagm::ComplexClip2GM
|