Home
last modified time | relevance | path

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

12345678910

/external/skia/include/core/
DSkSize.h15 T fHeight; member
20 s.fHeight = h; in Make()
30 fHeight = h; in set()
36 return 0 == fWidth && 0 == fHeight; in isZero()
41 return fWidth <= 0 || fHeight <= 0; in isEmpty()
46 fWidth = fHeight = 0; in setEmpty()
50 T height() const { return fHeight; } in height()
57 if (fHeight < 0) { in clampNegToZero()
58 fHeight = 0; in clampNegToZero()
63 return fWidth == w && fHeight == h; in equals()
[all …]
DSkImageInfo.h186 , fHeight(0) in SkImageInfo()
233 int height() const { return fHeight; } in height()
239 bool isEmpty() const { return fWidth <= 0 || fHeight <= 0; } in isEmpty()
245 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } in dimensions()
246 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } in bounds()
261 return Make(fWidth, fHeight, fColorType, newAlphaType, fColorSpace); in makeAlphaType()
265 return Make(fWidth, fHeight, newColorType, fAlphaType, fColorSpace); in makeColorType()
269 return Make(fWidth, fHeight, fColorType, fAlphaType, std::move(cs)); in makeColorSpace()
290 SkASSERT((unsigned)y < (unsigned)fHeight); in computeOffset()
295 return fWidth == other.fWidth && fHeight == other.fHeight &&
[all …]
/external/skia/src/gpu/
DGrTextureToYUVPlanes.cpp79 sizes[0].fHeight, in GrTextureToYUVPlanes()
89 sizes[0].fHeight, in GrTextureToYUVPlanes()
100 sizes[1].fHeight, in GrTextureToYUVPlanes()
110 sizes[1].fHeight, in GrTextureToYUVPlanes()
116 sizes[2].fHeight, in GrTextureToYUVPlanes()
128 sizes[0].fWidth, sizes[0].fHeight, in GrTextureToYUVPlanes()
135 sizes[0].fWidth, sizes[0].fHeight, in GrTextureToYUVPlanes()
141 sizes[1].fWidth, sizes[1].fHeight, in GrTextureToYUVPlanes()
148 sizes[1].fWidth, sizes[1].fHeight, in GrTextureToYUVPlanes()
153 sizes[2].fWidth, sizes[2].fHeight, in GrTextureToYUVPlanes()
[all …]
DGrYUVProvider.cpp48 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight); in init()
50 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kU].fHeight); in init()
60 totalSize += yuvInfo->fSizeInfo.fWidthBytes[i] * yuvInfo->fSizeInfo.fSizes[i].fHeight; in init()
70 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight); in init()
72 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kU].fHeight); in init()
103 yuvDesc.fHeight = yuvInfo.fSizeInfo.fSizes[i].fHeight; in refAsTextureProxy()
107 (yuvDesc.fHeight != yuvInfo.fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight) in refAsTextureProxy()
116 const SkImageInfo ii = SkImageInfo::MakeA8(yuvDesc.fWidth, yuvDesc.fHeight); in refAsTextureProxy()
126 desc.fWidth, desc.fHeight, in refAsTextureProxy()
158 yuvInfo.fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight); in refAsTextureProxy()
DGrTextureProducer.h32 int fHeight; member
71 int height() const { return fHeight; } in height()
80 , fHeight(height) in GrTextureProducer()
93 builder[2] = copyParams.fHeight; in MakeCopyKeyFromOrigKey()
145 const int fHeight; variable
DGrRectanizer.h17 GrRectanizer(int width, int height) : fWidth(width), fHeight(height) { in GrRectanizer()
27 int height() const { return fHeight; } in height()
41 int fHeight; variable
DGrStencilAttachment.h27 int height() const { return fHeight; } in height()
40 , fHeight(height) in GrStencilAttachment()
48 int fHeight; variable
DGrSurfaceProxy.cpp89 return fDesc.fHeight; in worstCaseHeight()
93 return SkTMax(GrResourceProvider::kMinScratchTextureSize, GrNextPow2(fDesc.fHeight)); in worstCaseHeight()
96 return fDesc.fHeight; in worstCaseHeight()
170 … if (!caps->npotTextureTileSupport() && (!SkIsPow2(desc.fWidth) || !SkIsPow2(desc.fHeight))) { in MakeDeferred()
196 if (desc.fWidth > maxSize || desc.fHeight > maxSize) { in MakeDeferred()
253 dstDesc.fHeight = srcRect.height(); in Copy()
307 fProxy->fDesc.fHeight = fProxy->fTarget->height(); in exactify()
DGrDrawOpAtlas.cpp24 desc.fHeight = height; in Make()
64 , fHeight(height) in Plot()
68 , fOffset(SkIPoint16::Make(fX * fWidth, fY * fHeight)) in Plot()
84 SkASSERT(width <= fWidth && height <= fHeight); in addSubImage()
87 fRects = GrRectanizer::Factory(fWidth, fHeight); in addSubImage()
96 fHeight)); in addSubImage()
153 sk_bzero(fData, fBytesPerPixel * fWidth * fHeight); in resetRects()
/external/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()
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()
DGrGLProgram.h66 fRenderTargetSize.fHeight = -1; in invalidate()
81 destVec[2] = -2.f / fRenderTargetSize.fHeight; in getRTAdjustmentVec()
84 destVec[2] = 2.f / fRenderTargetSize.fHeight; in getRTAdjustmentVec()
/external/skia/gm/
Dimagetoyuvplanes.cpp75 std::unique_ptr<uint8_t[]> yPlane(new uint8_t[realRowBytes[0] * sizes[0].fHeight]);
76 std::unique_ptr<uint8_t[]> uPlane(new uint8_t[realRowBytes[1] * sizes[1].fHeight]);
77 std::unique_ptr<uint8_t[]> vPlane(new uint8_t[realRowBytes[2] * sizes[2].fHeight]);
84 yuvBmps[0].setInfo(SkImageInfo::MakeA8(sizes[0].fWidth, sizes[0].fHeight), kRowBytes[s][0]);
85 yuvBmps[1].setInfo(SkImageInfo::MakeA8(sizes[1].fWidth, sizes[1].fHeight), kRowBytes[s][1]);
86 yuvBmps[2].setInfo(SkImageInfo::MakeA8(sizes[2].fWidth, sizes[2].fHeight), kRowBytes[s][2]);
94 memset(yPlane.get(), 0, realRowBytes[0] * sizes[0].fHeight);
95 memset(uPlane.get(), 0, realRowBytes[1] * sizes[1].fHeight);
96 memset(vPlane.get(), 0, realRowBytes[2] * sizes[2].fHeight);
Dcomplexclip2.cpp36 fHeight = yF - yA; in ComplexClip2GM()
39 fTotalHeight = kRows * fHeight + SK_Scalar1 * (kRows + 1) * kPadY; in ComplexClip2GM()
153 kPadY * SK_Scalar1 + (fHeight + kPadY * SK_Scalar1)*i); in onDraw()
191 canvas->drawRect(SkRect::MakeWH(fWidth, fHeight), fillPaint); in onDraw()
205 SkScalar fHeight; member in skiagm::ComplexClip2GM
/external/pdfium/xfa/fwl/theme/
Dcfwl_checkboxtp.cpp115 FX_FLOAT fHeight = pRtSign->height; in DrawSignDiamond() local
118 path.LineTo(CFX_PointF(pRtSign->left, pRtSign->top + fHeight / 2)); in DrawSignDiamond()
120 path.LineTo(CFX_PointF(pRtSign->right(), pRtSign->top + fHeight / 2)); in DrawSignDiamond()
224 FX_FLOAT fHeight = -kSignPath; in InitCheckPath() local
226 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in InitCheckPath()
227 CFX_PointF pt2(fWidth / 4.5f, fBottom + fHeight / 16.0f); in InitCheckPath()
229 CFX_PointF pt4(fWidth * 14 / 15.0f, fBottom + fHeight * 15 / 16.0f); in InitCheckPath()
230 CFX_PointF pt5(fWidth / 3.6f, fBottom + fHeight / 3.5f); in InitCheckPath()
231 CFX_PointF pt12(fWidth / 7.0f, fBottom + fHeight * 2 / 7.0f); in InitCheckPath()
232 CFX_PointF pt21(fWidth / 5.0f, fBottom + fHeight / 5.0f); in InitCheckPath()
[all …]
/external/skia/src/core/
DSkRadialShadowMapShader.cpp29 , fHeight(diffuseHeight) { } in SkRadialShadowMapShaderImpl()
73 int fHeight; member in SkRadialShadowMapShaderImpl
103 fHeight = diffuseHeight; in RadialShadowMapFP()
199 if (height != fHeight) { in onSetData()
201 fHeight = height; in onSetData()
211 int fHeight; member in RadialShadowMapFP::GLSLRadialShadowMapFP
226 int height() const { return fHeight; } in height()
236 if (fWidth != radialShadowMapFP.fWidth || fHeight != radialShadowMapFP.fHeight) { in onIsEqual()
249 int fHeight; member in RadialShadowMapFP
261 fLight, fWidth, fHeight, in asFragmentProcessor()
[all …]
DSkGlyph.h151 uint16_t fWidth, fHeight; variable
190 allocSize = BitsToBytes(fWidth) * fHeight; in allocImage()
193 allocSize = fWidth * fHeight; in allocImage()
194 fImage = alloc->makeArrayDefault<uint32_t>(fWidth * fHeight); in allocImage()
197 allocSize = SkAlign2(fWidth) * fHeight; in allocImage()
201 allocSize = SkAlign4(fWidth) * fHeight; in allocImage()
/external/skia/src/gpu/text/
DGrAtlasGlyphCache.cpp25 int height = fAtlasConfigs[index].fHeight; in initAtlas()
45 fAtlasConfigs[kA8_GrMaskFormat].fHeight = 2048; in GrAtlasGlyphCache()
52 fAtlasConfigs[kA565_GrMaskFormat].fHeight = 2048; in GrAtlasGlyphCache()
59 fAtlasConfigs[kARGB_GrMaskFormat].fHeight = 2048; in GrAtlasGlyphCache()
221 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in get_packed_glyph_bounds()
233 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in get_packed_glyph_df_bounds()
267 SkASSERT(glyph.fHeight == height); in get_packed_glyph_image()
322 SkASSERT(glyph.fHeight + 2*SK_DistanceFieldPad == height); in get_packed_glyph_df_image()
333 glyph.fHeight)); in get_packed_glyph_df_image()
360 glyph.fWidth, glyph.fHeight, in get_packed_glyph_df_image()
[all …]
/external/skia/tests/
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/tools/viewer/sk_app/android/
DRasterWindowContext_android.cpp42 fHeight = ANativeWindow_getHeight(fNativeWindow); in RasterWindowContext_android()
58 ANativeWindow_setBuffersGeometry(fNativeWindow, fWidth, fHeight, format); in setBuffersGeometry()
68 fHeight = h; in resize()
76 SkImageInfo info = SkImageInfo::Make(fWidth, fHeight, in getBackbufferSurface()
/external/skia/include/android/
DSkBitmapRegionDecoder.h81 int height() const { return fHeight; } in height()
89 , fHeight(height) in SkBitmapRegionDecoder()
94 const int fHeight; variable
/external/skia/tools/viewer/sk_app/unix/
DGLWindowContext_unix.cpp50 fHeight = winInfo.fHeight; in GLWindowContext_xlib()
103 (unsigned int*)&fWidth, (unsigned int*)&fHeight, &border_width, &depth); in onInitializeContext()
104 glViewport(0, 0, fWidth, fHeight); in onInitializeContext()
/external/skia/experimental/svg/model/
DSkSVGSVG.cpp16 auto viewPortRect = ctx->lengthContext().resolveRect(fX, fY, fWidth, fHeight); in onPrepareToRender()
60 fHeight = h; in setHeight()
103 fHeight.unit() == SkSVGLength::Unit::kPercentage) { in intrinsicSize()
108 lctx.resolve(fHeight, SkSVGLengthContext::LengthType::kVertical)); in intrinsicSize()
/external/pdfium/xfa/fxfa/app/
Dcxfa_textlayout.cpp266 FX_FLOAT fHeight = m_pLoader->m_fHeight; in GetLayoutHeight() local
267 if (fHeight < 0.1f) { in GetLayoutHeight()
268 fHeight = 0; in GetLayoutHeight()
270 fHeight += m_pLoader->m_lineHeights.ElementAt(i); in GetLayoutHeight()
272 return fHeight; in GetLayoutHeight()
308 FX_FLOAT fHeight = fTextHeight; in DoLayout() local
309 if (fHeight < 0) in DoLayout()
310 fHeight = GetLayoutHeight(); in DoLayout()
312 m_pLoader->m_fHeight = fHeight; in DoLayout()
317 if (iBlockCount == 0 && fHeight > 0) { in DoLayout()
[all …]
/external/pdfium/fpdfsdk/pdfwindow/
DPWL_Utils.cpp55 const FX_FLOAT fHeight = crBBox.top - crBBox.bottom; in GetAP_Check() local
77 pts[i][j].y *= pts[i][j].y * fHeight + crBBox.bottom; in GetAP_Check()
106 FX_FLOAT fHeight = crBBox.top - crBBox.bottom; in GetAP_Circle() local
108 CFX_PointF pt1(crBBox.left, crBBox.bottom + fHeight / 2); in GetAP_Circle()
110 CFX_PointF pt3(crBBox.right, crBBox.bottom + fHeight / 2); in GetAP_Circle()
159 FX_FLOAT fHeight = crBBox.top - crBBox.bottom; in GetAP_Diamond() local
161 CFX_PointF pt1(crBBox.left, crBBox.bottom + fHeight / 2); in GetAP_Diamond()
163 CFX_PointF pt3(crBBox.right, crBBox.bottom + fHeight / 2); in GetAP_Diamond()
224 FX_FLOAT fHeight = crBBox.top - crBBox.bottom; in GetAP_HalfCircle() local
227 CFX_PointF pt2(0, fHeight / 2); in GetAP_HalfCircle()
[all …]
/external/skia/src/image/
DSkImage_Gpu.cpp226 desc.fHeight = subset.height(); in onMakeSubset()
253 if (desc.fWidth <= 0 || desc.fHeight <= 0) { in new_wrapped_texture_common()
293 if (yuvSizes[0].fWidth <= 0 || yuvSizes[0].fHeight <= 0 || yuvSizes[1].fWidth <= 0 || in make_from_yuv_textures_copy()
294 yuvSizes[1].fHeight <= 0) { in make_from_yuv_textures_copy()
297 if (!nv12 && (yuvSizes[2].fWidth <= 0 || yuvSizes[2].fHeight <= 0)) { in make_from_yuv_textures_copy()
309 yDesc.fHeight = yuvSizes[0].fHeight; in make_from_yuv_textures_copy()
317 uDesc.fHeight = yuvSizes[1].fHeight; in make_from_yuv_textures_copy()
332 vDesc.fHeight = yuvSizes[2].fHeight; in make_from_yuv_textures_copy()
341 const int height = yuvSizes[0].fHeight; in make_from_yuv_textures_copy()
459 desc.fHeight = texture->height(); in MakeFromEncoded()
[all …]

12345678910