/external/skia/src/core/ |
D | SkString.cpp | 255 if (fRec.get() != &gEmptyRec) { in validate() 256 SkASSERT(fRec->fLength > 0); in validate() 257 SkASSERT(fRec->fRefCnt.load(std::memory_order_relaxed) > 0); in validate() 258 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() 285 fRec = src.fRec; in SkString() 291 fRec = std::move(src.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() 206 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 251 fRec.getMatrixFrom2x2(&matrix); in getMetrics() 276 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 533 SkPathPriv::SetIsBadForDAA(devPath, fRec.fFrameWidth > 0 && fRec.fFrameWidth <= 2); in getImage() 547 fRec.getMatrixFrom2x2(&matrix); in getImage() 593 if (fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag) { in internalGetPath() [all …]
|
D | SkScalerContext.h | 259 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat() 263 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel() 334 const SkScalerContextRec& getRec() const { return fRec; } in getRec() 353 SkScalerContextRec fRec;
|
/external/skqp/src/core/ |
D | SkString.cpp | 255 if (fRec.get() != &gEmptyRec) { in validate() 256 SkASSERT(fRec->fLength > 0); in validate() 257 SkASSERT(fRec->fRefCnt.load(std::memory_order_relaxed) > 0); in validate() 258 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() 285 fRec = src.fRec; in SkString() 291 fRec = std::move(src.fRec); in SkString() [all …]
|
D | SkMetaData.cpp | 31 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 …]
|
D | SkScalerContext.cpp | 45 : fRec(*static_cast<const SkScalerContextRec*>(desc->findEntry(kRec_SkDescriptorTag, nullptr))) in SkScalerContext() 51 , fGenerateImageFromPath(fRec.fFrameWidth > 0 || fPathEffect != nullptr) in SkScalerContext() 53 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext() 54 , fPreBlendForFilter(fMaskFilter ? SkScalerContext::GetMaskPreBlend(fRec) in SkScalerContext() 60 SkDebugf("%s", fRec.dump().c_str()); in SkScalerContext() 174 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 219 fRec.getMatrixFrom2x2(&matrix); in getMetrics() 244 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics() 501 SkPathPriv::SetIsBadForDAA(devPath, fRec.fFrameWidth > 0 && fRec.fFrameWidth <= 2); in getImage() 515 fRec.getMatrixFrom2x2(&matrix); in getImage() [all …]
|
D | SkScalerContext.h | 269 return (SkMask::Format)fRec.fMaskFormat; in getMaskFormat() 273 return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); in isSubpixel() 346 const SkScalerContextRec& getRec() const { return fRec; } in getRec() 365 SkScalerContextRec fRec;
|
/external/skqp/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 …]
|
/external/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 …]
|
/external/skqp/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
|
/external/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
|
/external/skia/src/utils/ |
D | SkMetaData.cpp | 31 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 …]
|
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() 361 fRec->fMatrix.preTranslate(x, y, z); in translate() [all …]
|
D | SkMetaData.h | 134 Iter() : fRec(nullptr) {} in Iter() 150 Rec* fRec; 168 Rec* fRec; variable
|
/external/skia/samplecode/ |
D | SampleAtlas.cpp | 136 Rec fRec[N]; member in DrawAtlasDrawable 156 fRec[i].fCenter.set(sx + cell/2, sy + 3*cell/4); in DrawAtlasDrawable() 157 fRec[i].fVelocity.fX = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable() 158 fRec[i].fVelocity.fY = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable() 159 fRec[i].fScale = 1; in DrawAtlasDrawable() 160 fRec[i].fDScale = rand.nextSScalar1() / 16; in DrawAtlasDrawable() 161 fRec[i].fRadian = 0; in DrawAtlasDrawable() 162 fRec[i].fDRadian = rand.nextSScalar1() / 8; in DrawAtlasDrawable() 163 fRec[i].fAlpha = rand.nextUScalar1(); in DrawAtlasDrawable() 164 fRec[i].fDAlpha = rand.nextSScalar1() / 10; in DrawAtlasDrawable() [all …]
|
/external/skqp/samplecode/ |
D | SampleAtlas.cpp | 136 Rec fRec[N]; member in DrawAtlasDrawable 156 fRec[i].fCenter.set(sx + cell/2, sy + 3*cell/4); in DrawAtlasDrawable() 157 fRec[i].fVelocity.fX = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable() 158 fRec[i].fVelocity.fY = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable() 159 fRec[i].fScale = 1; in DrawAtlasDrawable() 160 fRec[i].fDScale = rand.nextSScalar1() / 16; in DrawAtlasDrawable() 161 fRec[i].fRadian = 0; in DrawAtlasDrawable() 162 fRec[i].fDRadian = rand.nextSScalar1() / 8; in DrawAtlasDrawable() 163 fRec[i].fAlpha = rand.nextUScalar1(); in DrawAtlasDrawable() 164 fRec[i].fDAlpha = rand.nextSScalar1() / 10; in DrawAtlasDrawable() [all …]
|
/external/skqp/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 …]
|
D | SkMetaData.h | 134 Iter() : fRec(nullptr) {} in Iter() 150 Rec* fRec; 168 Rec* fRec; variable
|
/external/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 …]
|
/external/skqp/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() 361 fRec->fMatrix.preTranslate(x, y, z); in translate() [all …]
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.cpp | 239 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW() 258 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW() 273 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW() 279 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW() 344 SkMask::kA8_Format == fRec.fMaskFormat && in SkScalerContext_DW() 345 !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) in SkScalerContext_DW() 354 if (fRec.getHinting() == kNo_SkFontHinting) { in SkScalerContext_DW() 686 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics() 1026 color = fRec.getLuminanceColor(); in generateColorGlyphImage() 1128 } else if (!isLCD(fRec)) { in generateImage() [all …]
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 239 fRec.computeMatrices(SkScalerContextRec::kVertical_PreMatrixScale, &scale, &fSkXform); in SkScalerContext_DW() 258 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW() 273 axisAlignedBitmap = is_axis_aligned(fRec); in SkScalerContext_DW() 279 if (SkMask::kBW_Format == fRec.fMaskFormat) { in SkScalerContext_DW() 344 SkMask::kA8_Format == fRec.fMaskFormat && in SkScalerContext_DW() 345 !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) in SkScalerContext_DW() 354 if (fRec.getHinting() == kNo_SkFontHinting) { in SkScalerContext_DW() 686 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics() 1028 color = fRec.getLuminanceColor(); in generateColorGlyphImage() 1130 } else if (!isLCD(fRec)) { in generateImage() [all …]
|
D | SkFontHost_win.cpp | 641 (fRec.getHinting() == kNo_SkFontHinting || fRec.getHinting() == kSlight_SkFontHinting) in SkScalerContext_GDI() 648 fRec.computeMatrices(scaleConstraints, &scale, &sA, &GsA, &fG_inv, &A); in SkScalerContext_GDI() 674 lf.lfQuality = compute_quality(fRec); in SkScalerContext_GDI() 722 if (needToRenderWithSkia(fRec)) { in SkScalerContext_GDI() 762 fMat22.eM11 = SkScalarToFIXED(fRec.fPost2x2[0][0]); in SkScalerContext_GDI() 763 fMat22.eM12 = SkScalarToFIXED(-fRec.fPost2x2[1][0]); in SkScalerContext_GDI() 764 fMat22.eM21 = SkScalarToFIXED(-fRec.fPost2x2[0][1]); in SkScalerContext_GDI() 765 fMat22.eM22 = SkScalarToFIXED(fRec.fPost2x2[1][1]); in SkScalerContext_GDI() 871 glyph->fMaskFormat = fRec.fMaskFormat; in generateMetrics() 966 } else if (!isAxisAligned(this->fRec)) { in generateMetrics() [all …]
|