Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkString.cpp238 if (fRec.get() != &gEmptyRec) { in validate()
239 SkASSERT(fRec->fLength > 0); in validate()
240 SkASSERT(fRec->fRefCnt.load(std::memory_order_relaxed) > 0); in validate()
241 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
248 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString()
252 fRec = Rec::Make(nullptr, len); in SkString()
258 fRec = Rec::Make(text, len); in SkString()
262 fRec = Rec::Make(text, len); in SkString()
268 fRec = src.fRec; in SkString()
274 fRec = std::move(src.fRec); in SkString()
[all …]
DSkMetaData.cpp31 SkMetaData::SkMetaData() : fRec(nullptr) in SkMetaData()
35 SkMetaData::SkMetaData(const SkMetaData& src) : fRec(nullptr) in SkMetaData()
47 Rec* rec = fRec; in reset()
59 fRec = nullptr; in reset()
66 const Rec* rec = src.fRec; in operator =()
141 rec->fNext = fRec; in set()
142 fRec = rec; in set()
236 const Rec* rec = fRec; in find()
247 Rec* rec = fRec; in remove()
255 fRec = next; in remove()
[all …]
DSkScalerContext.cpp71 : fRec(*static_cast<const SkScalerContextRec*>(desc->findEntry(kRec_SkDescriptorTag, nullptr))) in SkScalerContext()
77 , fGenerateImageFromPath(fRec.fFrameWidth > 0 || fPathEffect != nullptr) in SkScalerContext()
79 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
80 , fPreBlendForFilter(fMaskFilter ? SkScalerContext::GetMaskPreBlend(fRec) in SkScalerContext()
86 SkDebugf("%s", fRec.dump().c_str()); in SkScalerContext()
111 if ((fRec.fFlags & SkScalerContext::kDevKernText_Flag) == 0) { in getMetrics()
147 switch (fRec.fMaskFormat) { in getMetrics()
160 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
173 fRec.getMatrixFrom2x2(&matrix); in getMetrics()
198 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
[all …]
DSkScalerContext.h258 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat()
262 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel()
266 return SkToBool(fRec.fFlags & kVertical_Flag); in isVertical()
331 const SkScalerContextRec& getRec() const { return fRec; } in getRec()
350 SkScalerContextRec fRec;
/external/skqp/src/core/
DSkString.cpp270 if (fRec.get() != &gEmptyRec) { in validate()
271 SkASSERT(fRec->fLength > 0); in validate()
272 SkASSERT(fRec->fRefCnt.load(std::memory_order_relaxed) > 0); in validate()
273 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
280 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString()
284 fRec = Rec::Make(nullptr, len); in SkString()
290 fRec = Rec::Make(text, len); in SkString()
294 fRec = Rec::Make(text, len); in SkString()
300 fRec = src.fRec; in SkString()
306 fRec = std::move(src.fRec); in SkString()
[all …]
DSkMetaData.cpp31 SkMetaData::SkMetaData() : fRec(nullptr) in SkMetaData()
35 SkMetaData::SkMetaData(const SkMetaData& src) : fRec(nullptr) in SkMetaData()
47 Rec* rec = fRec; in reset()
59 fRec = nullptr; in reset()
66 const Rec* rec = src.fRec; in operator =()
141 rec->fNext = fRec; in set()
142 fRec = rec; in set()
236 const Rec* rec = fRec; in find()
247 Rec* rec = fRec; in remove()
255 fRec = next; in remove()
[all …]
DSkScalerContext.cpp71 : fRec(*static_cast<const SkScalerContextRec*>(desc->findEntry(kRec_SkDescriptorTag, nullptr))) in SkScalerContext()
77 , fGenerateImageFromPath(fRec.fFrameWidth > 0 || fPathEffect != nullptr) in SkScalerContext()
79 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
80 , fPreBlendForFilter(fMaskFilter ? SkScalerContext::GetMaskPreBlend(fRec) in SkScalerContext()
117 if ((fRec.fFlags & SkScalerContext::kDevKernText_Flag) == 0) { in getMetrics()
153 switch (fRec.fMaskFormat) { in getMetrics()
166 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
179 fRec.getMatrixFrom2x2(&matrix); in getMetrics()
204 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
509 fRec.getMatrixFrom2x2(&matrix); in getImage()
[all …]
DSkScalerContext.h231 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat()
235 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel()
239 return SkToBool(fRec.fFlags & kVertical_Flag); in isVertical()
301 const SkScalerContextRec& getRec() const { return fRec; } in getRec()
320 SkScalerContextRec fRec;
/external/skqp/src/gpu/
DGrWindowRectangles.h41 const Rec* rec() const { return fCount <= kNumLocalWindows ? nullptr : fRec; } in rec()
46 Rec* fRec; // If fCount > kNumLocalWindows. member
61 return fCount <= kNumLocalWindows ? fLocalWindows : fRec->fData; in data()
75 fRec = SkRef(that.fRec);
88 result.fRec = new Rec(); in makeOffset()
89 windows = result.fRec->fData; in makeOffset()
105 fRec = new Rec(fLocalWindows, kNumLocalWindows); 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 …]
/external/skia/src/gpu/
DGrWindowRectangles.h41 const Rec* rec() const { return fCount <= kNumLocalWindows ? nullptr : fRec; } in rec()
46 Rec* fRec; // If fCount > kNumLocalWindows. member
61 return fCount <= kNumLocalWindows ? fLocalWindows : fRec->fData; in data()
75 fRec = SkRef(that.fRec);
88 result.fRec = new Rec(); in makeOffset()
89 windows = result.fRec->fData; in makeOffset()
105 fRec = new Rec(fLocalWindows, kNumLocalWindows); 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 …]
/external/skqp/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.cpp65 fRec.fZPlaneParams = SkPoint3::Make(0, 0, kElevation); in onDelayedSetup()
66 fRec.fLightPos = SkPoint3::Make(270, 0, 600); in onDelayedSetup()
67 fRec.fLightRadius = 800; in onDelayedSetup()
68 fRec.fAmbientColor = 0x19000000; in onDelayedSetup()
69 fRec.fSpotColor = 0x40000000; in onDelayedSetup()
70 fRec.fFlags = 0; in onDelayedSetup()
72 fRec.fFlags |= SkShadowFlags::kTransparentOccluder_ShadowFlag; in onDelayedSetup()
75 fRec.fFlags |= SkShadowFlags::kGeometricOnly_ShadowFlag; in onDelayedSetup()
88 canvas->private_draw_shadow_rec(fRRects[i % kNumRRects], fRec); in onDraw()
96 SkDrawShadowRec fRec; member in ShadowBench
/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 …]
DShadowBench.cpp65 fRec.fZPlaneParams = SkPoint3::Make(0, 0, kElevation); in onDelayedSetup()
66 fRec.fLightPos = SkPoint3::Make(270, 0, 600); in onDelayedSetup()
67 fRec.fLightRadius = 800; in onDelayedSetup()
68 fRec.fAmbientColor = 0x19000000; in onDelayedSetup()
69 fRec.fSpotColor = 0x40000000; in onDelayedSetup()
70 fRec.fFlags = 0; in onDelayedSetup()
72 fRec.fFlags |= SkShadowFlags::kTransparentOccluder_ShadowFlag; in onDelayedSetup()
75 fRec.fFlags |= SkShadowFlags::kGeometricOnly_ShadowFlag; in onDelayedSetup()
88 canvas->private_draw_shadow_rec(fRRects[i % kNumRRects], fRec); in onDraw()
96 SkDrawShadowRec fRec; member in ShadowBench
/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/skqp/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/skqp/include/core/
DSkString.h133 bool isEmpty() const { return 0 == fRec->fLength; } in isEmpty()
134 size_t size() const { return (size_t) fRec->fLength; } in size()
135 const char* c_str() const { return fRec->data(); } in c_str()
143 return SkStrStartsWith(fRec->data(), prefixStr); in startsWith()
146 return SkStrStartsWith(fRec->data(), prefixChar); in startsWith()
149 return SkStrEndsWith(fRec->data(), suffixStr); in endsWith()
152 return SkStrEndsWith(fRec->data(), suffixChar); in endsWith()
155 return SkStrContains(fRec->data(), substring); in contains()
158 return SkStrContains(fRec->data(), subchar); in contains()
161 return SkStrFind(fRec->data(), substring); in find()
[all …]
DSkMetaData.h134 Iter() : fRec(nullptr) {} in Iter()
150 Rec* fRec;
168 Rec* fRec; variable
/external/skia/include/core/
DSkString.h133 bool isEmpty() const { return 0 == fRec->fLength; } in isEmpty()
134 size_t size() const { return (size_t) fRec->fLength; } in size()
135 const char* c_str() const { return fRec->data(); } in c_str()
143 return SkStrStartsWith(fRec->data(), prefixStr); in startsWith()
146 return SkStrStartsWith(fRec->data(), prefixChar); in startsWith()
149 return SkStrEndsWith(fRec->data(), suffixStr); in endsWith()
152 return SkStrEndsWith(fRec->data(), suffixChar); in endsWith()
155 return SkStrContains(fRec->data(), substring); in contains()
158 return SkStrContains(fRec->data(), subchar); in contains()
161 return SkStrFind(fRec->data(), substring); in find()
[all …]
DSkMetaData.h134 Iter() : fRec(nullptr) {} in Iter()
150 Rec* fRec;
168 Rec* fRec; variable
/external/skia/src/utils/
DSkCamera.cpp311 fRec = &fInitialRec; in Sk3DView()
315 Rec* rec = fRec; in ~Sk3DView()
325 rec->fNext = fRec; in save()
326 rec->fMatrix = fRec->fMatrix; in save()
327 fRec = rec; in save()
331 SkASSERT(fRec != &fInitialRec); in restore()
332 Rec* next = fRec->fNext; in restore()
333 delete fRec; in restore()
334 fRec = next; in restore()
361 fRec->fMatrix.preTranslate(x, y, z); in translate()
[all …]
/external/skqp/src/utils/
DSkCamera.cpp311 fRec = &fInitialRec; in Sk3DView()
315 Rec* rec = fRec; in ~Sk3DView()
325 rec->fNext = fRec; in save()
326 rec->fMatrix = fRec->fMatrix; in save()
327 fRec = rec; in save()
331 SkASSERT(fRec != &fInitialRec); in restore()
332 Rec* next = fRec->fNext; in restore()
333 delete fRec; in restore()
334 fRec = next; in restore()
361 fRec->fMatrix.preTranslate(x, y, z); in translate()
[all …]
/external/skqp/src/ports/
DSkFontHost_FreeType.cpp770 fRec.computeMatrices(SkScalerContextRec::kFull_PreMatrixScale, &fScale, &fMatrix22Scalar); in SkScalerContext_FreeType()
779 fLCDIsVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in SkScalerContext_FreeType()
782 bool linearMetrics = SkToBool(fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag); in SkScalerContext_FreeType()
786 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_FreeType()
789 if (fRec.getHinting() == SkPaint::kNo_Hinting) { in SkScalerContext_FreeType()
794 switch (fRec.getHinting()) { in SkScalerContext_FreeType()
803 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
812 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
817 if (isLCD(fRec)) { in SkScalerContext_FreeType()
826 SkDebugf("---------- UNKNOWN hinting %d\n", fRec.getHinting()); in SkScalerContext_FreeType()
[all …]
DSkScalerContext_win_dw.cpp234 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW()
253 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW()
268 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW()
274 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW()
339 SkMask::kA8_Format == fRec.fMaskFormat && in SkScalerContext_DW()
340 !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) in SkScalerContext_DW()
349 if (fRec.getHinting() == SkPaint::kNo_Hinting) { in SkScalerContext_DW()
888 color = fRec.getLuminanceColor(); in generateColorGlyphImage()
938 } else if (!isLCD(fRec)) { in generateImage()
955 if (fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag) { in generateImage()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType.cpp770 fRec.computeMatrices(SkScalerContextRec::kFull_PreMatrixScale, &fScale, &fMatrix22Scalar); in SkScalerContext_FreeType()
779 fLCDIsVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in SkScalerContext_FreeType()
782 bool linearMetrics = SkToBool(fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag); in SkScalerContext_FreeType()
786 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_FreeType()
789 if (fRec.getHinting() == SkPaint::kNo_Hinting) { in SkScalerContext_FreeType()
794 switch (fRec.getHinting()) { in SkScalerContext_FreeType()
803 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
812 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
817 if (isLCD(fRec)) { in SkScalerContext_FreeType()
826 SkDebugf("---------- UNKNOWN hinting %d\n", fRec.getHinting()); in SkScalerContext_FreeType()
[all …]

12