/third_party/skia/src/core/ |
D | SkString.cpp | 264 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 …]
|
D | SkTypeface_remote.cpp | 32 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()
|
D | SkScalerContext.cpp | 77 : 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 …]
|
D | SkScalerContext.h | 281 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/flutter/skia/src/core/ |
D | SkString.cpp | 254 if (fRec.get() != &gEmptyRec) { in validate() 255 SkASSERT(fRec->fLength > 0); in validate() 256 SkASSERT(fRec->fRefCnt.load(std::memory_order_relaxed) > 0); in validate() 257 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate() 265 SkString::SkString() : fRec(const_cast<Rec*>(&gEmptyRec)) { in SkString() 269 fRec = Rec::Make(nullptr, len); in SkString() 275 fRec = Rec::Make(text, len); in SkString() 279 fRec = Rec::Make(text, len); in SkString() 282 SkString::SkString(const SkString& src) : fRec(src.validate().fRec) {} in SkString() 284 SkString::SkString(SkString&& src) : fRec(std::move(src.validate().fRec)) { in SkString() [all …]
|
D | SkScalerContext.cpp | 77 : 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() 209 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 229 if (fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag) { in getMetrics() 259 fRec.getMatrixFrom2x2(&matrix); in getMetrics() 284 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 574 const bool doBGR = SkToBool(fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag); in getImage() 575 const bool doVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in getImage() [all …]
|
D | SkScalerContext.h | 258 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat() 262 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel() 266 return SkToBool(fRec.fFlags & kLinearMetrics_Flag); in isLinearMetrics() 328 const SkScalerContextRec& getRec() const { return fRec; } in getRec() 347 SkScalerContextRec fRec;
|
/third_party/skia/src/gpu/ |
D | GrWindowRectangles.h | 40 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/flutter/skia/src/gpu/ |
D | GrWindowRectangles.h | 41 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 …]
|
/third_party/flutter/skia/bench/ |
D | BezierBench.cpp | 51 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 …]
|
D | ShadowBench.cpp | 63 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/bench/ |
D | BezierBench.cpp | 51 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 …]
|
D | ShadowBench.cpp | 63 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/flutter/skia/tools/ |
D | SkMetaData.cpp | 15 Rec* rec = fRec; in reset() 21 fRec = nullptr; in reset() 73 rec->fNext = fRec; in set() 74 fRec = rec; in set() 146 const Rec* rec = fRec; in find() 157 Rec* rec = fRec; in remove() 165 fRec = next; in remove() 199 fRec = metadata.fRec; in Iter() 203 fRec = metadata.fRec; in reset() 209 if (fRec) { in next() [all …]
|
D | SkMetaData.h | 18 ~SkMetaData() { if (fRec) { this->reset(); } } in ~SkMetaData() 71 Iter() : fRec(nullptr) {} in Iter() 87 Rec* fRec; 105 Rec* fRec = nullptr; variable
|
/third_party/skia/tools/ |
D | SkMetaData.cpp | 15 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 …]
|
D | SkMetaData.h | 18 ~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/ |
D | SkCamera.cpp | 153 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 …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleAtlas.cpp | 135 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 …]
|
/third_party/skia/samplecode/ |
D | SampleAtlas.cpp | 138 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/flutter/skia/include/core/ |
D | SkString.h | 133 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 …]
|
/third_party/skia/include/core/ |
D | SkString.h | 132 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/flutter/skia/src/utils/ |
D | SkCamera.cpp | 311 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() 362 fRec->fMatrix.preTranslate(x, y, z); in translate() [all …]
|
/third_party/flutter/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 240 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW() 259 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW() 274 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW() 280 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW() 345 SkMask::kA8_Format == fRec.fMaskFormat && in SkScalerContext_DW() 346 !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) in SkScalerContext_DW() 355 if (fRec.getHinting() == SkFontHinting::kNone) { in SkScalerContext_DW() 681 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics() 1027 color = fRec.getLuminanceColor(); in generateColorGlyphImage() 1129 } else if (!isLCD(fRec)) { in generateImage() [all …]
|
/third_party/skia/platform_tools/debugging/lldb/ |
D | skia.py | 21 fRec = valobj.GetChildMemberWithName('fRec') 23 fLength = fRec.GetChildMemberWithName('fLength') 26 fBeginningOfData = fRec.GetChildMemberWithName('fBeginningOfData')
|