Home
last modified time | relevance | path

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

/third_party/skia/src/core/
DSkString.cpp264 if (fRec.get() != &gEmptyRec) { in validate()
265 SkASSERT(fRec->fLength > 0); in validate()
266 SkASSERT(fRec->getRefCnt() > 0); in validate()
267 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
275 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString()
279 fRec = Rec::Make(nullptr, len); in SkString()
285 fRec = Rec::Make(text, len); in SkString()
289 fRec = Rec::Make(text, len); in SkString()
292 SkString::SkString(const SkString& src) : fRec(src.validate().fRec) {} in SkString()
294 SkString::SkString(SkString&& src) : fRec(std::move(src.validate().fRec)) { in SkString()
[all …]
DSkTypeface_remote.cpp32 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics()
35 SkStrikeClient::CacheMissType::kGlyphMetrics, fRec.fTextSize); in generateMetrics()
47 SkStrikeClient::CacheMissType::kGlyphImage, fRec.fTextSize); in generateImage()
57 SkStrikeClient::CacheMissType::kGlyphPath, fRec.fTextSize); in generatePath()
70 SkStrikeClient::CacheMissType::kFontMetrics, fRec.fTextSize); in generateFontMetrics()
DSkScalerContext.cpp77 : fRec(PreprocessRec(*typeface, effects, *desc)) in SkScalerContext()
82 , fGenerateImageFromPath(fRec.fFrameWidth >= 0 || fPathEffect != nullptr) in SkScalerContext()
84 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
89 SkDebugf("%s", fRec.dump().c_str()); in SkScalerContext()
181 return internalMakeGlyph(packedID, fRec.fMaskFormat); in makeGlyph()
215 const bool a8FromLCD = fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag; in internalMakeGlyph()
219 const bool verticalLCD = fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag; in internalMakeGlyph()
249 fRec.getMatrixFrom2x2(&matrix); in internalMakeGlyph()
272 glyph.fMaskFormat = fRec.fMaskFormat; in internalMakeGlyph()
559 tmpGlyph = this->internalMakeGlyph(origGlyph.getPackedID(), fRec.fMaskFormat); in getImage()
[all …]
DSkScalerContext.h281 return fRec.fMaskFormat; in getMaskFormat()
285 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel()
289 return SkToBool(fRec.fFlags & kLinearMetrics_Flag); in isLinearMetrics()
350 const SkScalerContextRec& getRec() const { return fRec; } in getRec()
369 SkScalerContextRec fRec;
/third_party/skia/src/gpu/
DGrWindowRectangles.h40 const Rec* rec() const { return fCount <= 1 ? nullptr : fRec; } in rec()
45 Rec* fRec; // If fCount > 1. member
60 return fCount <= 1 ? &fLocalWindow : fRec->fData; in data()
74 fRec = SkRef(that.fRec);
87 result.fRec = new Rec(); in makeOffset()
88 windows = result.fRec->fData; in makeOffset()
105 fRec = new Rec(&fLocalWindow, 1); in addWindow()
106 } else if (!fRec->unique()) { // Simple copy-on-write. in addWindow()
107 fRec->unref(); in addWindow()
108 fRec = new Rec(fRec->fData, fCount); in addWindow()
[all …]
/third_party/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 …]
DShadowBench.cpp63 fRec.fZPlaneParams = SkPoint3::Make(0, 0, kElevation); in onDelayedSetup()
64 fRec.fLightPos = SkPoint3::Make(270, 0, 600); in onDelayedSetup()
65 fRec.fLightRadius = 800; in onDelayedSetup()
66 fRec.fAmbientColor = 0x19000000; in onDelayedSetup()
67 fRec.fSpotColor = 0x40000000; in onDelayedSetup()
68 fRec.fFlags = 0; in onDelayedSetup()
70 fRec.fFlags |= SkShadowFlags::kTransparentOccluder_ShadowFlag; in onDelayedSetup()
73 fRec.fFlags |= SkShadowFlags::kGeometricOnly_ShadowFlag; in onDelayedSetup()
86 canvas->private_draw_shadow_rec(fRRects[i % kNumRRects], fRec); in onDraw()
94 SkDrawShadowRec fRec; member in ShadowBench
/third_party/skia/tools/
DSkMetaData.cpp15 Rec* rec = fRec; in reset()
21 fRec = nullptr; in reset()
90 rec->fNext = fRec; in set()
91 fRec = rec; in set()
163 FindResult current { fRec, nullptr }; in findWithPrev()
183 fRec = result.rec->fNext; in remove()
220 fRec = metadata.fRec; in Iter()
224 fRec = metadata.fRec; in reset()
230 if (fRec) { in next()
232 *t = (SkMetaData::Type)fRec->fType; in next()
[all …]
DSkMetaData.h18 ~SkMetaData() { if (fRec) { this->reset(); } } in ~SkMetaData()
71 Iter() : fRec(nullptr) {} in Iter()
87 Rec* fRec;
105 Rec* fRec = nullptr; variable
/third_party/skia/src/utils/
DSkCamera.cpp153 fRec = &fInitialRec; in Sk3DView()
157 Rec* rec = fRec; in ~Sk3DView()
167 rec->fNext = fRec; in save()
168 rec->fMatrix = fRec->fMatrix; in save()
169 fRec = rec; in save()
173 SkASSERT(fRec != &fInitialRec); in restore()
174 Rec* next = fRec->fNext; in restore()
175 delete fRec; in restore()
176 fRec = next; in restore()
201 fRec->fMatrix.preTranslate(x, y, z); in translate()
[all …]
DSkCustomTypeface.cpp196 fRec.getSingleMatrix(&fMatrix); in SkUserScalerContext()
/third_party/skia/samplecode/
DSampleAtlas.cpp138 Rec fRec[N]; member in DrawAtlasDrawable
158 fRec[i].fCenter.set(sx + cell/2, sy + 3*cell/4); in DrawAtlasDrawable()
159 fRec[i].fVelocity.fX = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
160 fRec[i].fVelocity.fY = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
161 fRec[i].fScale = 1; in DrawAtlasDrawable()
162 fRec[i].fDScale = rand.nextSScalar1() / 16; in DrawAtlasDrawable()
163 fRec[i].fRadian = 0; in DrawAtlasDrawable()
164 fRec[i].fDRadian = rand.nextSScalar1() / 8; in DrawAtlasDrawable()
165 fRec[i].fAlpha = rand.nextUScalar1(); in DrawAtlasDrawable()
166 fRec[i].fDAlpha = rand.nextSScalar1() / 10; in DrawAtlasDrawable()
[all …]
/third_party/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 …]
/third_party/skia/platform_tools/debugging/lldb/
Dskia.py21 fRec = valobj.GetChildMemberWithName('fRec')
23 fLength = fRec.GetChildMemberWithName('fLength')
26 fBeginningOfData = fRec.GetChildMemberWithName('fBeginningOfData')
/third_party/skia/src/ports/
DSkScalerContext_win_dw.cpp286 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW()
305 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW()
320 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW()
326 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW()
391 SkMask::kA8_Format == fRec.fMaskFormat && in SkScalerContext_DW()
392 !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) in SkScalerContext_DW()
401 if (fRec.getHinting() == SkFontHinting::kNone) { in SkScalerContext_DW()
739 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics()
1098 color = fRec.getLuminanceColor(); in generateColorGlyphImage()
1200 } else if (!isLCD(fRec)) { in generateImage()
[all …]
DSkFontHost_win.cpp654 (fRec.getHinting() == SkFontHinting::kNone || fRec.getHinting() == SkFontHinting::kSlight) in SkScalerContext_GDI()
661 fRec.computeMatrices(scaleConstraints, &scale, &sA, &GsA, &fG_inv, &A); in SkScalerContext_GDI()
687 lf.lfQuality = compute_quality(fRec); in SkScalerContext_GDI()
735 if (needToRenderWithSkia(fRec)) { in SkScalerContext_GDI()
775 fMat22.eM11 = SkScalarToFIXED(fRec.fPost2x2[0][0]); in SkScalerContext_GDI()
776 fMat22.eM12 = SkScalarToFIXED(-fRec.fPost2x2[1][0]); in SkScalerContext_GDI()
777 fMat22.eM21 = SkScalarToFIXED(-fRec.fPost2x2[0][1]); in SkScalerContext_GDI()
778 fMat22.eM22 = SkScalarToFIXED(fRec.fPost2x2[1][1]); in SkScalerContext_GDI()
808 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics()
904 } else if (!isAxisAligned(this->fRec)) { in generateMetrics()
[all …]
DSkFontHost_FreeType.cpp775 fLCDIsVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in SkScalerContext_FreeType()
782 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_FreeType()
785 if (fRec.getHinting() == SkFontHinting::kNone) { in SkScalerContext_FreeType()
790 switch (fRec.getHinting()) { in SkScalerContext_FreeType()
804 if (isLCD(fRec)) { in SkScalerContext_FreeType()
813 LOG_INFO("---------- UNKNOWN hinting %d\n", fRec.getHinting()); in SkScalerContext_FreeType()
818 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
826 if ((fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag) == 0) { in SkScalerContext_FreeType()
866 fRec.computeMatrices(SkScalerContextRec::kFull_PreMatrixScale, &fScale, &fMatrix22Scalar); in SkScalerContext_FreeType()
1077 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics()
[all …]
DSkScalerContext_mac_ct.cpp121 , fDoSubPosition(SkToBool(fRec.fFlags & kSubpixelPositioning_Flag)) in SkScalerContext_Mac()
130 bool invertible = fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, in SkScalerContext_Mac()
273 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics()
451 bool requestSmooth = fRec.getHinting() != SkFontHinting::kNone; in generateImage()
DSkFontHost_FreeType_common.cpp1229 const bool doBGR = SkToBool(fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag); in generateGlyphImage()
1230 const bool doVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in generateGlyphImage()
1299 fRec.fForegroundColor, in generateGlyphImage()
1315 paint.setColor(fRec.fForegroundColor); in generateGlyphImage()
/third_party/skia/tests/
DSerializationTest.cpp751 const AnnotationRec* fRec; member in TestAnnotationCanvas
759 , fRec(rec) in TestAnnotationCanvas()
771 REPORTER_ASSERT(fReporter, rect == fRec[fCurrIndex].fRect); in onDrawAnnotation()
772 REPORTER_ASSERT(fReporter, !strcmp(key, fRec[fCurrIndex].fKey)); in onDrawAnnotation()
773 REPORTER_ASSERT(fReporter, value->equals(fRec[fCurrIndex].fValue.get())); in onDrawAnnotation()
/third_party/skia/include/utils/
DSkCamera.h100 Rec* fRec; variable
/third_party/skia/tools/fonts/
DTestTypeface.cpp154 fRec.getSingleMatrix(&fMatrix); in SkTestScalerContext()
DTestSVGTypeface.cpp177 fRec.getSingleMatrix(&fMatrix); in SkTestSVGScalerContext()