Home
last modified time | relevance | path

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

123

/external/skia/include/core/
DSkSize.h15 T fHeight; member
20 s.fHeight = h; in Make()
26 fHeight = h; in set()
32 return 0 == fWidth && 0 == fHeight; in isZero()
37 return fWidth <= 0 || fHeight <= 0; in isEmpty()
42 fWidth = fHeight = 0; in setEmpty()
46 T height() const { return fHeight; } in height()
53 if (fHeight < 0) { in clampNegToZero()
54 fHeight = 0; in clampNegToZero()
59 return fWidth == w && fHeight == h; in equals()
[all …]
DSkBitmap.h89 bool empty() const { return 0 == fWidth || 0 == fHeight; } in empty()
107 int height() const { return fHeight; } in height()
139 size_t getSize() const { return fHeight * fRowBytes; } in getSize()
153 size.setMul(fHeight, fRowBytes); in getSize64()
583 SkASSERT((unsigned)y < (unsigned)fHeight); in packedAtY()
589 SkASSERT((unsigned)y < (unsigned)fHeight); in setPackedAtY()
595 int fHeight; variable
622 uint32_t fHeight; variable
816 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight); in getAddr32()
823 SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight); in getAddr16()
[all …]
DSkPicture.h96 int height() const { return fHeight; } in height()
107 int fWidth, fHeight;
/external/skia/src/gpu/gl/
DGrGLIRect.h24 GrGLsizei fHeight; member
27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport()
31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
49 fBottom = glRect.fBottom + (glRect.fHeight - topOffset - height); in setRelativeTo()
50 fHeight = height; in setRelativeTo()
55 GrAssert(fHeight >= 0); in setRelativeTo()
62 fBottom + fHeight >= glRect.fBottom + glRect.fHeight; in contains()
65 void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;} in invalidate()
DGrGLTexture.cpp46 vp.fHeight = textureDesc.fHeight; in init()
56 textureDesc.fHeight, in GrGLTexture()
66 textureDesc.fHeight, in GrGLTexture()
DGrGLRenderTarget.cpp38 viewport.fHeight, in GrGLRenderTarget()
49 GrAssert(viewport.fHeight == texture->height()); in GrGLRenderTarget()
60 viewport.fHeight, in GrGLRenderTarget()
DGrGpuGL.cpp321 dstDesc.fHeight = 256; in canPreserveReadWriteUnpremulPixels()
490 glTexDesc.fHeight = desc.fHeight; in onCreatePlatformTexture()
506 glTexDesc.fHeight, in onCreatePlatformTexture()
535 viewport.fHeight = desc.fHeight; in onCreatePlatformRenderTarget()
547 desc.fHeight, in onCreatePlatformRenderTarget()
572 desc.fHeight = glTex->height(); in onWriteTexturePixels()
618 if (!adjust_pixel_ops_params(desc.fWidth, desc.fHeight, bpp, &left, &top, in uploadTexData()
712 desc.fWidth == width && desc.fHeight == height) { in uploadTexData()
721 desc.fWidth, desc.fHeight)); in uploadTexData()
724 GrGLsizei imageSize = desc.fWidth * desc.fHeight + in uploadTexData()
[all …]
/external/skia/include/gpu/
DGrTexture.h33 int height() const { return fHeight; } in height()
41 GrFixed normalizeFixedY(GrFixed y) const { GrAssert(GrIsPow2(fHeight)); in normalizeFixedY()
53 return (size_t) fWidth * fHeight * GrBytesPerPixel(fConfig); in sizeInBytes()
131 , fHeight(height) in GrTexture()
135 fShiftFixedY = 31 - Gr_clz(fHeight); in GrTexture()
147 int fHeight; variable
DGrRenderTarget.h44 int height() const { return fHeight; } in height()
185 , fHeight(height) in GrRenderTarget()
206 int fHeight; variable
/external/skia/src/images/
DSkPageFlipper.cpp14 fHeight = 0; in SkPageFlipper()
24 fHeight = height; in SkPageFlipper()
34 fHeight = height; in resize()
42 fDirty1->setRect(0, 0, fWidth, fHeight); in inval()
47 r.set(0, 0, fWidth, fHeight); in inval()
55 r.setRect(0, 0, fWidth, fHeight); in inval()
DSkImageDecoder_wbmp.cpp50 int fHeight; member
65 if (!read_mbf(stream, &fHeight) || (unsigned)fHeight > 0xFFFF) { in init()
68 return fWidth != 0 && fHeight != 0; in init()
111 int height = head.fHeight; in onDecode()
DSkImageDecoder_libbmp.cpp56 fHeight = height; in SetSize()
66 int height() const { return fHeight; } in height()
72 int fHeight; member in SkBmpDecoderCallback
/external/skia/src/core/
DSkPicture.cpp105 fWidth = fHeight = 0; in SkPicture()
110 fHeight = src.fHeight; in SkPicture()
136 SkTSwap(fHeight, other.fHeight); in swap()
156 fHeight = height; in beginRecording()
202 fHeight = stream->readU32(); in SkPicture()
221 stream->write32(fHeight); in serialize()
DSkScalerContext.cpp28 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask()
34 const size_t size = this->rowBytes() * fHeight; in computeImageSize()
48 fHeight = 0; in zeroMetrics()
284 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics()
286 glyph->fHeight = 0; in getMetrics()
308 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
323 glyph->fHeight = SkToU16(ir.height()); in getMetrics()
344 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics()
355 glyph->fHeight = 0; in getMetrics()
536 SkASSERT(tmpGlyph.fHeight <= origGlyph.fHeight); in getImage()
[all …]
DSkBitmap.cpp32 uint32_t fWidth, fHeight; member
143 SkTSwap(fHeight, other.fHeight); in swap()
271 fHeight = height; in setConfig()
452 return (fHeight ? ((fHeight - 1) * fRowBytes) + in getSafeSize()
457 return ComputeSafeSize64(getConfig(), fWidth, fHeight, fRowBytes); in getSafeSize64()
487 if (ComputeSafeSize(getConfig(), fWidth, fHeight, dstRowBytes) > in copyPixelsTo()
496 for (uint32_t row = 0; row < fHeight; in copyPixelsTo()
670 if (0 == fWidth || 0 == fHeight || in eraseARGB()
681 int height = fHeight; in eraseARGB()
966 dst->setConfig(dstConfig, fWidth, fHeight); in deepCopyTo()
[all …]
/external/skia/src/gpu/
DGrStencilBuffer.h28 int height() const { return fHeight; } in height()
38 GrAssert(height <= fHeight); in setLastClip()
70 , fHeight(height) in GrStencilBuffer()
92 int fHeight; variable
DGrRectanizer.h26 GrRectanizer(int width, int height) : fWidth(width), fHeight(height) { in GrRectanizer()
34 int height() const { return fHeight; } in height()
52 int fHeight; variable
/external/skia/include/images/
DSkBitmapRegionDecoder.h24 fHeight = height; in SkBitmapRegionDecoder()
35 virtual int getHeight() { return fHeight; } in getHeight()
43 int fHeight; variable
DSkPageFlipper.h30 int height() const { return fHeight; } in height()
59 int fHeight; variable
/external/skia/tests/
DTestSize.cpp30 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in TestISize()
58 a.fWidth == b.fWidth && a.fHeight == b.fHeight); in TestSize()
/external/skia/gm/
Dcomplexclip2.cpp36 fHeight = yF - yA; in ComplexClip2GM()
54 fTotalHeight = kRows * fHeight + SK_Scalar1 * (kRows + 1) * kPadY; in ComplexClip2GM()
103 kPadY * SK_Scalar1 + (fHeight + kPadY * SK_Scalar1)*i); in onDraw()
108 canvas->drawRect(SkRect::MakeWH(fWidth, fHeight), fillPaint); in onDraw()
123 SkScalar fHeight; member in skiagm::ComplexClip2GM
/external/skia/src/ports/
DSkFontHost_win.cpp289 fWidth = fHeight = 0; in HDCOffscreen()
319 int fHeight; member in HDCOffscreen
343 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw()
360 fHeight = SkMax32(fHeight, glyph.fHeight); in draw()
375 info.bmiHeader.biHeight = fHeight; in draw()
391 size_t size = fHeight * srcRB; in draw()
408 return (const char*)fBits + (fHeight - glyph.fHeight) * srcRB; in draw()
609 glyph->fHeight = gm.gmBlackBoxY; in generateMetrics()
627 glyph->fHeight += 4; in generateMetrics()
775 uint8_t* SK_RESTRICT dst = (uint8_t*)((char*)glyph.fImage + (glyph.fHeight - 1) * dstRB); in rgb_to_bw()
[all …]
DSkFontHost_mac_coretext.cpp724 if (!fCG || fSize.fWidth < glyph.fWidth || fSize.fHeight < glyph.fHeight) { in getCG()
729 if (fSize.fHeight < glyph.fHeight) { in getCG()
730 fSize.fHeight = RoundSize(glyph.fHeight); in getCG()
734 void* image = fImageStorage.reset(rowBytes * fSize.fHeight); in getCG()
735 fCG = CGBitmapContextCreate(image, fSize.fWidth, fSize.fHeight, 8, in getCG()
772 image += (fSize.fHeight - glyph.fHeight) * fSize.fWidth; in getCG()
778 glyph.fHeight, rowBytes); in getCG()
780 sk_memset_rect32(image, erase, glyph.fWidth, glyph.fHeight, rowBytes); in getCG()
796 glyph.fTop + glyph.fHeight - subY, in getCG()
1040 glyph->fHeight = sk_float_ceil2int(theBounds.size.height); in generateMetrics()
[all …]
DSkFontHost_ascender.cpp140 glyph->fHeight = 0; in generateMetrics()
149 glyph->fHeight = rec.rows; in generateMetrics()
166 int height = glyph.fHeight; in generateImage()
/external/skia/src/views/
DSkView.cpp15 fWidth = fHeight = 0; in SkView()
68 if (fWidth != width || fHeight != height) in setSize()
72 fHeight = height; in setSize()
104 if (fWidth && fHeight && this->isVisible()) in draw()
107 r.set(fLoc.fX, fLoc.fY, fLoc.fX + fWidth, fLoc.fY + fHeight); in draw()
374 if (x < 0 || y < 0 || x >= fWidth || y >= fHeight) { in findClickHandler()
495 bounds->set(0, 0, fWidth, fHeight); in getLocalBounds()

123