Home
last modified time | relevance | path

Searched refs:fRec (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/animator/
DSkTDStack.h19 fRec = &fInitialRec; in SkTDStack()
25 Rec* rec = fRec; in ~SkTDStack()
41 rec->fNext = fRec; in push()
42 fRec = rec; in push()
46 return &fRec->fSlots[fCount++]; in push()
52 SkASSERT(fRec && fCount > idx); in index()
53 return fRec->fSlots[fCount - idx - 1]; in index()
57 SkASSERT(fRec && fCount > idx); in index()
58 return fRec->fSlots[fCount - idx - 1]; in index()
62 SkASSERT(fRec && fCount > 0); in top()
[all …]
/external/skia/src/core/
DSkString.cpp245 if (fRec != &gEmptyRec) { in validate()
246 SkASSERT(fRec->fLength > 0); in validate()
247 SkASSERT(fRec->fRefCnt > 0); in validate()
248 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
255 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString()
259 fRec = AllocRec(nullptr, len); in SkString()
265 fRec = AllocRec(text, len); in SkString()
269 fRec = AllocRec(text, len); in SkString()
275 fRec = RefRec(src.fRec); in SkString()
281 fRec = src.fRec; in SkString()
[all …]
DSkPixelRef.cpp53 fRec.zero(); in SkPixelRef()
107 fRec.fPixels = pixels; in setPreLocked()
108 fRec.fColorTable = ctable; in setPreLocked()
109 fRec.fRowBytes = rowBytes; in setPreLocked()
119 SkASSERT(fRec.isZero()); in lockPixelsInsideMutex()
120 if (!this->onNewLockPixels(&fRec)) { in lockPixelsInsideMutex()
121 fRec.zero(); in lockPixelsInsideMutex()
126 if (fRec.fPixels) { in lockPixelsInsideMutex()
127 validate_pixels_ctable(fInfo, fRec.fColorTable); in lockPixelsInsideMutex()
156 if (fRec.fPixels) { in lockPixels()
[all …]
DSkMetaData.cpp30 SkMetaData::SkMetaData() : fRec(nullptr) in SkMetaData()
34 SkMetaData::SkMetaData(const SkMetaData& src) : fRec(nullptr) in SkMetaData()
46 Rec* rec = fRec; in reset()
58 fRec = nullptr; in reset()
65 const Rec* rec = src.fRec; in operator =()
140 rec->fNext = fRec; in set()
141 fRec = rec; in set()
235 const Rec* rec = fRec; in find()
246 Rec* rec = fRec; in remove()
254 fRec = next; in remove()
[all …]
DSkScalerContext.cpp80 : fRec(*static_cast<const Rec*>(desc->findEntry(kRec_SkDescriptorTag, nullptr))) in SkScalerContext()
90 … , fGenerateImageFromPath(fRec.fFrameWidth > 0 || fPathEffect != nullptr || fRasterizer != nullptr) in SkScalerContext()
92 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
93 , fPreBlendForFilter(fMaskFilter ? SkScalerContext::GetMaskPreBlend(fRec) in SkScalerContext()
134 if ((fRec.fFlags & SkScalerContext::kDevKernText_Flag) == 0) { in getMetrics()
181 switch (fRec.fMaskFormat) { in getMetrics()
194 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
208 fRec.getMatrixFrom2x2(&matrix); in getMetrics()
233 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
555 fRec.getMatrixFrom2x2(&matrix); in getImage()
[all …]
DSkScalerContext.h195 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat()
199 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel()
203 return SkToBool(fRec.fFlags & kVertical_Flag); in isVertical()
246 const Rec& getRec() const { return fRec; } in getRec()
249 Rec fRec;
/external/skia/bench/
DBezierBench.cpp51 BezierRec fRec; member in BezierBench
69 fRec.fQuad.moveTo(20, 20); in BezierBench()
70 fRec.fQuad.quadTo(60, 20, 60, 60); in BezierBench()
71 fRec.fQuad.quadTo(20, 60, 20, 100); in BezierBench()
72 fRec.fCubic.moveTo(20, 20); in BezierBench()
73 fRec.fCubic.cubicTo(40, 20, 60, 40, 60, 60); in BezierBench()
74 fRec.fCubic.cubicTo(40, 60, 20, 80, 20, 100); in BezierBench()
83 fRec.fCanvas = canvas; in onDraw()
84 this->setupPaint(&fRec.fPaint); in onDraw()
85 fRec.fPaint.setStyle(SkPaint::kStroke_Style); in onDraw()
[all …]
/external/skia/samplecode/
DSampleAtlas.cpp135 Rec fRec[N]; member in DrawAtlasDrawable
155 fRec[i].fCenter.set(sx + cell/2, sy + 3*cell/4); in DrawAtlasDrawable()
156 fRec[i].fVelocity.fX = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
157 fRec[i].fVelocity.fY = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
158 fRec[i].fScale = 1; in DrawAtlasDrawable()
159 fRec[i].fDScale = rand.nextSScalar1() / 16; in DrawAtlasDrawable()
160 fRec[i].fRadian = 0; in DrawAtlasDrawable()
161 fRec[i].fDRadian = rand.nextSScalar1() / 8; in DrawAtlasDrawable()
162 fRec[i].fAlpha = rand.nextUScalar1(); in DrawAtlasDrawable()
163 fRec[i].fDAlpha = rand.nextSScalar1() / 10; in DrawAtlasDrawable()
[all …]
/external/skia/include/core/
DSkString.h132 bool isEmpty() const { return 0 == fRec->fLength; } in isEmpty()
133 size_t size() const { return (size_t) fRec->fLength; } in size()
134 const char* c_str() const { return fRec->data(); } in c_str()
142 return SkStrStartsWith(fRec->data(), prefixStr); in startsWith()
145 return SkStrStartsWith(fRec->data(), prefixChar); in startsWith()
148 return SkStrEndsWith(fRec->data(), suffixStr); in endsWith()
151 return SkStrEndsWith(fRec->data(), suffixChar); in endsWith()
154 return SkStrContains(fRec->data(), substring); in contains()
157 return SkStrContains(fRec->data(), subchar); in contains()
160 return SkStrFind(fRec->data(), substring); in find()
[all …]
DSkPixelRef.h49 void* pixels() const { return fRec.fPixels; } in pixels()
53 SkColorTable* colorTable() const { return fRec.fColorTable; } in colorTable()
55 size_t rowBytes() const { return fRec.fRowBytes; } in rowBytes()
346 LockRec fRec; variable
DSkMetaData.h134 Iter() : fRec(NULL) {} in Iter()
150 Rec* fRec;
168 Rec* fRec; variable
/external/skia/src/utils/
DSkCamera.cpp287 fRec = &fInitialRec; in Sk3DView()
291 Rec* rec = fRec; in ~Sk3DView()
301 rec->fNext = fRec; in save()
302 rec->fMatrix = fRec->fMatrix; in save()
303 fRec = rec; in save()
307 SkASSERT(fRec != &fInitialRec); in restore()
308 Rec* next = fRec->fNext; in restore()
309 delete fRec; in restore()
310 fRec = next; in restore()
337 fRec->fMatrix.preTranslate(x, y, z); in translate()
[all …]
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient.cpp12 const TwoPtRadial& fRec; member
99 : fRec(rec) in TwoPtRadialContext()
110 float C = sqr(fRelX) + sqr(fRelY) - fRec.fRadius2; in nextT()
111 int countRoots = find_quad_roots(fRec.fA, fB, C, roots, fRec.fFlipped); in nextT()
124 float r = lerp(fRec.fRadius, fRec.fDRadius, t); in nextT()
127 r = lerp(fRec.fRadius, fRec.fDRadius, t); in nextT()
204 fRec.init(fCenter1, fRadius1, fCenter2, fRadius2, fFlippedGrad); in SkTwoPointConicalGradient()
273 TwoPtRadialContext rec(twoPointConicalGradient.fRec, fx, fy, dx, dy); in shadeSpan()
281 TwoPtRadialContext rec(twoPointConicalGradient.fRec, srcPt.fX, srcPt.fY, 0, 0); in shadeSpan()
DSkTwoPointConicalGradient.h42 TwoPtRadial fRec; variable
/external/skia/src/ports/
DSkFontHost_FreeType.cpp811 fRec.computeMatrices(SkScalerContextRec::kFull_PreMatrixScale, &fScale, &fMatrix22Scalar); in SkScalerContext_FreeType()
822 fLCDIsVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in SkScalerContext_FreeType()
825 bool linearMetrics = SkToBool(fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag); in SkScalerContext_FreeType()
829 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_FreeType()
832 if (fRec.getHinting() == SkPaint::kNo_Hinting) { in SkScalerContext_FreeType()
837 switch (fRec.getHinting()) { in SkScalerContext_FreeType()
846 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
855 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
860 if (isLCD(fRec)) { in SkScalerContext_FreeType()
869 SkDebugf("---------- UNKNOWN hinting %d\n", fRec.getHinting()); in SkScalerContext_FreeType()
[all …]
DSkScalerContext_win_dw.cpp230 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, in SkScalerContext_DW()
257 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW()
268 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW()
272 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW()
731 } else if (!isLCD(fRec)) { in generateImage()
740 if (fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag) { in generateImage()
746 if (fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag) { in generateImage()
DSkFontHost_FreeType_common.cpp338 const bool doBGR = SkToBool(fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag); in generateGlyphImage()
339 const bool doVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in generateGlyphImage()
348 if (fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag) { in generateGlyphImage()
382 target.pixel_mode = compute_pixel_mode( (SkMask::Format)fRec.fMaskFormat); in generateGlyphImage()
405 if (fRec.fFlags & SkScalerContext::kEmbolden_Flag && in generateGlyphImage()
DSkFontHost_win.cpp622 (fRec.getHinting() == SkPaint::kNo_Hinting || fRec.getHinting() == SkPaint::kSlight_Hinting) in SkScalerContext_GDI()
629 fRec.computeMatrices(scaleConstraints, &scale, &sA, &GsA, &fG_inv, &A); in SkScalerContext_GDI()
655 lf.lfQuality = compute_quality(fRec); in SkScalerContext_GDI()
703 if (needToRenderWithSkia(fRec)) { in SkScalerContext_GDI()
743 fMat22.eM11 = SkScalarToFIXED(fRec.fPost2x2[0][0]); in SkScalerContext_GDI()
744 fMat22.eM12 = SkScalarToFIXED(-fRec.fPost2x2[1][0]); in SkScalerContext_GDI()
745 fMat22.eM21 = SkScalarToFIXED(-fRec.fPost2x2[0][1]); in SkScalerContext_GDI()
746 fMat22.eM22 = SkScalarToFIXED(fRec.fPost2x2[1][1]); in SkScalerContext_GDI()
938 } else if (!isAxisAligned(this->fRec)) { in generateMetrics()
1232 const bool isBW = SkMask::kBW_Format == fRec.fMaskFormat; in generateImage()
[all …]
DSkFontHost_mac.cpp754 , fDoSubPosition(SkToBool(fRec.fFlags & kSubpixelPositioning_Flag)) in SkScalerContext_Mac()
755 , fVertical(SkToBool(fRec.fFlags & kVertical_Flag)) in SkScalerContext_Mac()
769 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &skTransform, in SkScalerContext_Mac()
1253 bool generateA8FromLCD = fRec.getHinting() != SkPaint::kNo_Hinting; in generateImage()
1355 fRec.getSingleMatrix(&m); in generatePath()
/external/skia/src/fonts/
DSkGScalerContext.cpp48 sizeof(SkScalerContext::Rec), &fRec); in SkGScalerContext()
62 fRec.getSingleMatrix(&fMatrix); in SkGScalerContext()
DSkTestScalerContext.cpp188 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext()
/external/skia/include/utils/
DSkCamera.h148 Rec* fRec; variable