Home
last modified time | relevance | path

Searched refs:fProxy (Results 1 – 25 of 56) sorted by relevance

123

/external/skqp/include/private/
DGrProxyRef.h35 SkASSERT(SkToBool(fProxy) == fOwnRef); in setProxy()
36 SkSafeUnref(fProxy); in setProxy()
38 fProxy = nullptr; in setProxy()
41 fProxy = proxy.release(); // due to the semantics of this class we unpack from sk_sp in setProxy()
47 T* get() const { return fProxy; } in get()
60 SkASSERT(fProxy); in reset()
63 fProxy->completedRead(); in reset()
66 fProxy->completedWrite(); in reset()
69 fProxy->completedRead(); in reset()
70 fProxy->completedWrite(); in reset()
[all …]
/external/skia/tools/fonts/
DRandomScalerContext.cpp36 std::unique_ptr<SkScalerContext> fProxy; member in RandomScalerContext
45 , fProxy(getRandomTypeface()->proxy()->createScalerContext(SkScalerContextEffects(), desc)) in RandomScalerContext()
47 fProxy->forceGenerateImageFromPath(); in RandomScalerContext()
50 bool RandomScalerContext::generateAdvance(SkGlyph* glyph) { return fProxy->generateAdvance(glyph); } in generateAdvance()
63 *glyph = fProxy->internalMakeGlyph(glyph->getPackedID(), format); in generateMetrics()
70 if (!fProxy->getPath(glyph->getPackedID(), &path)) { in generateMetrics()
106 fProxy->getImage(glyph); in generateImage()
112 if (!fProxy->getPath(glyph.getPackedID(), &path)) { in generateImage()
113 fProxy->getImage(glyph); in generateImage()
129 return fProxy->generatePath(glyph, path); in generatePath()
[all …]
DRandomScalerContext.h23 SkTypeface* proxy() const { return fProxy.get(); } in proxy()
54 sk_sp<SkTypeface> fProxy;
/external/skqp/tools/fonts/
DSkRandomScalerContext.cpp37 std::unique_ptr<SkScalerContext> fProxy; member in SkRandomScalerContext
46 , fProxy(getRandomTypeface()->proxy()->createScalerContext(SkScalerContextEffects(), desc)) in SkRandomScalerContext()
49 fProxy->forceGenerateImageFromPath(); in SkRandomScalerContext()
53 return fProxy->getGlyphCount(); in generateGlyphCount()
57 return fProxy->charToGlyphID(uni); in generateCharToGlyph()
61 return fProxy->generateAdvance(glyph); in generateAdvance()
74 fProxy->getMetrics(glyph); in generateMetrics()
81 if (!fProxy->getPath(glyph->getPackedID(), &path)) { in generateMetrics()
118 fProxy->getImage(glyph); in generateImage()
124 if (!fProxy->getPath(glyph.getPackedID(), &path)) { in generateImage()
[all …]
DSkRandomScalerContext.h23 SkTypeface* proxy() const { return fProxy.get(); } in proxy()
53 sk_sp<SkTypeface> fProxy;
/external/skia/src/gpu/
DGrContextThreadSafeProxyPriv.h27 return fProxy == candidate->threadSafeProxy().get(); in matches()
30 GrBackend backend() const { return fProxy->fBackend; } in backend()
31 const GrContextOptions& options() const { return fProxy->fOptions; } in options()
32 uint32_t contextID() const { return fProxy->fContextID; } in contextID()
34 const GrCaps* caps() const { return fProxy->fCaps.get(); } in caps()
35 sk_sp<const GrCaps> refCaps() const { return fProxy->fCaps; } in refCaps()
37 GrTextBlobCache* getTextBlobCache() { return fProxy->fTextBlobCache.get(); } in getTextBlobCache()
38 const GrTextBlobCache* getTextBlobCache() const { return fProxy->fTextBlobCache.get(); } in getTextBlobCache()
40 GrThreadSafeCache* threadSafeCache() { return fProxy->fThreadSafeCache.get(); } in threadSafeCache()
41 const GrThreadSafeCache* threadSafeCache() const { return fProxy->fThreadSafeCache.get(); } in threadSafeCache()
[all …]
DGrSurfaceProxyView.h23 : fProxy(std::move(proxy)), fOrigin(origin), fSwizzle(swizzle) {} in GrSurfaceProxyView()
27 : fProxy(std::move(proxy)), fOrigin(kTopLeft_GrSurfaceOrigin) {} in GrSurfaceProxyView()
32 operator bool() const { return SkToBool(fProxy.get()); }
38 return fProxy->uniqueID() == view.fProxy->uniqueID() &&
48 GrSurfaceProxy* proxy() const { return fProxy.get(); } in proxy()
49 sk_sp<GrSurfaceProxy> refProxy() const { return fProxy; } in refProxy()
52 if (!fProxy) { in asTextureProxy()
55 return fProxy->asTextureProxy(); in asTextureProxy()
62 if (!fProxy) { in asRenderTargetProxy()
65 return fProxy->asRenderTargetProxy(); in asRenderTargetProxy()
[all …]
DGrSurfaceProxyPriv.h21 return fProxy->computeScratchKey(caps, key); in computeScratchKey()
27 return fProxy->createSurface(resourceProvider); in createSurface()
31 void assign(sk_sp<GrSurface> surface) { fProxy->assign(std::move(surface)); } in assign()
34 bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } in isExact()
39 void setLazyDimensions(SkISize dimensions) { fProxy->setLazyDimensions(dimensions); } in setLazyDimensions()
43 void setIsDDLTarget() { fProxy->fIsDDLTarget = true; } in setIsDDLTarget()
45 void setIsPromiseProxy() { fProxy->fIsPromiseProxy = true; } in setIsPromiseProxy()
48 explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} in GrSurfaceProxyPriv()
56 GrSurfaceProxy* fProxy; variable
DGrSurfaceProxy.cpp371 SkASSERT(!fProxy->isFullyLazy()); in exactify()
376 SkASSERT(SkBackingFit::kApprox == fProxy->fFit); in exactify()
378 if (fProxy->fTarget) { in exactify()
384 fProxy->fDimensions = fProxy->fTarget->dimensions(); in exactify()
401 fProxy->fFit = SkBackingFit::kExact; in exactify()
409 SkASSERT(fProxy->isLazy()); in doLazyInstantiation()
412 if (const auto& uniqueKey = fProxy->getUniqueKey(); uniqueKey.isValid()) { in doLazyInstantiation()
420 auto result = fProxy->fLazyInstantiateCallback(resourceProvider, fProxy->callbackDesc()); in doLazyInstantiation()
426 fProxy->fDimensions.setEmpty(); in doLazyInstantiation()
430 if (fProxy->isFullyLazy()) { in doLazyInstantiation()
[all …]
DGrResourceAllocator.h187 : fProxy(proxy) in Interval()
198 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
199 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
226 GrSurfaceProxy* fProxy;
/external/skqp/src/gpu/
DGrSurfaceProxyPriv.h24 int32_t getProxyRefCnt() const { return fProxy->getProxyRefCnt(); } in getProxyRefCnt()
29 bool hasPendingIO() const { return fProxy->hasPendingIO(); } in hasPendingIO()
34 bool hasPendingWrite() const { return fProxy->hasPendingWrite(); } in hasPendingWrite()
36 void computeScratchKey(GrScratchKey* key) const { return fProxy->computeScratchKey(key); } in computeScratchKey()
41 return fProxy->createSurface(resourceProvider); in createSurface()
45 void assign(sk_sp<GrSurface> surface) { fProxy->assign(std::move(surface)); } in assign()
48 return fProxy->fSurfaceFlags & GrInternalSurfaceFlags::kNoPendingIO; in requiresNoPendingIO()
52 bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } in isExact()
60 return fProxy->fLazyInstantiationType; in lazyInstantiationType()
64 return SkToBool(fProxy->fTarget) && in isSafeToDeinstantiate()
[all …]
DGrSurfaceProxy.cpp400 SkASSERT(GrSurfaceProxy::LazyState::kFully != fProxy->lazyInstantiationState()); in exactify()
405 SkASSERT(SkBackingFit::kApprox == fProxy->fFit); in exactify()
407 if (fProxy->fTarget) { in exactify()
413 fProxy->fWidth = fProxy->fTarget->width(); in exactify()
414 fProxy->fHeight = fProxy->fTarget->height(); in exactify()
420 fProxy->fFit = SkBackingFit::kExact; in exactify()
428 SkASSERT(GrSurfaceProxy::LazyState::kNot != fProxy->lazyInstantiationState()); in doLazyInstantiation()
431 if (fProxy->asTextureProxy() && fProxy->asTextureProxy()->getUniqueKey().isValid()) { in doLazyInstantiation()
434 fProxy->asTextureProxy()->getUniqueKey()); in doLazyInstantiation()
438 surface = fProxy->fLazyInstantiateCallback(resourceProvider); in doLazyInstantiation()
[all …]
DGrCoordTransform.h24 : fProxy(nullptr) in GrCoordTransform()
63 fProxy = that.fProxy;
86 if (fProxy->underlyingUniqueID() != that.fProxy->underlyingUniqueID()) { in hasSameEffectAs()
95 const GrTextureProxy* proxy() const { return fProxy; } in proxy()
101 GrTexture* peekTexture() const { return fProxy->peekTexture(); } in peekTexture()
108 fProxy = proxy;
119 const GrTextureProxy* fProxy; variable
DGrContextThreadSafeProxyPriv.h20 const GrContextOptions& contextOptions() { return fProxy->fOptions; } in contextOptions()
22 const GrCaps* caps() const { return fProxy->fCaps.get(); } in caps()
23 sk_sp<const GrCaps> refCaps() const { return fProxy->fCaps; } in refCaps()
24 uint32_t contextID() const { return fProxy->fContextID; } in contextID()
25 GrBackendApi backend() const { return fProxy->fBackend; } in backend()
29 explicit GrContextThreadSafeProxyPriv(GrContextThreadSafeProxy* proxy) : fProxy(proxy) {} in GrContextThreadSafeProxyPriv()
37 GrContextThreadSafeProxy* fProxy; variable
DGrXferProcessor.h65 : fProxy(std::move(proxy)) { in DstProxy()
66 if (fProxy) { in DstProxy()
74 fProxy = other.fProxy;
80 return fProxy == that.fProxy && fOffset == that.fOffset;
89 GrTextureProxy* proxy() const { return fProxy.get(); } in proxy()
92 fProxy = std::move(proxy); in setProxy()
93 if (!fProxy) { in setProxy()
99 return SkToBool(fProxy->instantiate(resourceProvider)); in instantiate()
103 sk_sp<GrTextureProxy> fProxy;
DGrResourceAllocator.h110 : fProxy(proxy) in Interval()
127 fProxy = proxy; in resetTo()
143 const GrSurfaceProxy* proxy() const { return fProxy; } in proxy()
144 GrSurfaceProxy* proxy() { return fProxy; } in proxy()
173 GrSurfaceProxy* fProxy; variable
DGrOpFlushState.h57 GrSurfaceOrigin origin() const { return fProxy->origin(); } in origin()
58 GrRenderTarget* renderTarget() const { return fProxy->peekRenderTarget(); } in renderTarget()
62 GrRenderTargetProxy* fProxy; member
99 GrRenderTargetProxy* proxy() const final { return fOpArgs->fProxy; } in proxy()
/external/skia/modules/skresources/src/
DSkResources.cpp212 : fProxy(std::move(rp)) {} in ResourceProviderProxyBase()
216 return fProxy ? fProxy->load(resource_path, resource_name) in load()
223 return fProxy ? fProxy->loadImageAsset(rpath, rname, rid) in loadImageAsset()
229 return fProxy ? fProxy->loadTypeface(name, url) in loadTypeface()
234 return fProxy ? fProxy->loadFont(name, url) in loadFont()
241 return fProxy ? fProxy->loadAudioAsset(path, name, id) in loadAudioAsset()
/external/skqp/src/gpu/ops/
DGrTextureOp.cpp131 fProxies[p].fProxy->completedRead(); in ~TextureOp()
133 fProxies[p].fProxy->unref(); in ~TextureOp()
145 func(fProxies[p].fProxy); in visitProxies()
155 str.appendf("Proxy ID: %d, Filter: %d\n", fProxies[p].fProxy->uniqueID().asUInt(), in dumpInfo()
179 fProxies[p].fProxy->addPendingRead(); in finalize()
180 fProxies[p].fProxy->unref(); in finalize()
241 static_cast<unsigned>(fProxies[0].fProxy->canSkipResourceAllocator()); in TextureOp()
260 fProxies[p].fProxy = SkRef(set[p].fProxy.get()); in TextureOp()
262 SkASSERT(fProxies[p].fProxy->textureType() == fProxies[0].fProxy->textureType()); in TextureOp()
263 SkASSERT(fProxies[p].fProxy->config() == fProxies[0].fProxy->config()); in TextureOp()
[all …]
DGrLatticeOp.cpp157 , fProxy(std::move(proxy)) in NonAALatticeOp()
174 func(fProxy.get()); in visitProxies()
197 auto opaque = fPatches[0].fColor.isOpaque() && GrPixelConfigIsOpaque(fProxy->config()) in finalize()
210 auto gp = LatticeGP::Make(gpu, fProxy.get(), fColorSpaceXform, fFilter, fWideColor); in onPrepareDraws()
255 Sk4f scales(1.f / fProxy->width(), 1.f / fProxy->height(), in onPrepareDraws()
256 1.f / fProxy->width(), 1.f / fProxy->height()); in onPrepareDraws()
266 if (fProxy->origin() == kBottomLeft_GrSurfaceOrigin) { in onPrepareDraws()
288 pipe.fFixedDynamicState->fPrimitiveProcessorTextures[0] = fProxy.get(); in onPrepareDraws()
294 if (fProxy != that->fProxy) { in onCombineIfPossible()
321 sk_sp<GrTextureProxy> fProxy; member in __anon5c393f480111::NonAALatticeOp
/external/skqp/src/image/
DSkImage_Gpu.h32 return fProxy.get(); in peekProxy()
35 return fProxy; in asTextureProxyRef()
38 virtual bool onIsTextureBacked() const override { return SkToBool(fProxy.get()); } in onIsTextureBacked()
67 sk_sp<GrTextureProxy> fProxy;
/external/skqp/src/atlastext/
DSkInternalAtlasTextContext.cpp39 if (fDistanceFieldAtlas.fProxy) { in ~SkInternalAtlasTextContext()
92 if (!fDistanceFieldAtlas.fProxy) { in flush()
94 fDistanceFieldAtlas.fProxy = atlasManager->getProxies(kA8_GrMaskFormat, &numProxies)->get(); in flush()
98 fDistanceFieldAtlas.fProxy->width(), in flush()
99 fDistanceFieldAtlas.fProxy->height()); in flush()
105 SkASSERT(proxy == this->fDistanceFieldAtlas.fProxy); in flush()
/external/skqp/gm/
Dimage_pict.cpp159 fProxy = as_IB(image)->asTextureProxyRef(); in TextureGenerator()
169 if (!fProxy) { in onGenerateTexture()
174 info.width() == fProxy->width() && info.height() == fProxy->height()) { in onGenerateTexture()
175 return fProxy; in onGenerateTexture()
182 desc.fConfig = fProxy->config(); in onGenerateTexture()
187 fProxy->backendFormat(), desc, fProxy->origin(), mipMapped, SkBackingFit::kExact, in onGenerateTexture()
194 fProxy.get(), in onGenerateTexture()
205 sk_sp<GrTextureProxy> fProxy; member in TextureGenerator
/external/skia/src/fonts/
DSkFontMgr_indirect.cpp50 SkFontIdentity id = fOwner->fProxy->matchIndexStyle(fFamilyIndex, pattern); in matchStyle()
75 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); in onMatchFamily()
118 std::unique_ptr<SkStreamAsset> stream(fProxy->getData(id.fDataId)); in createTypefaceFromFontId()
139 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle()
148 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, in onMatchFamilyStyleCharacter()
180 SkFontIdentity fontId = this->fProxy->matchIndexStyle(0, style); in onLegacyMakeTypeface()
/external/skqp/src/fonts/
DSkFontMgr_indirect.cpp50 SkFontIdentity id = fOwner->fProxy->matchIndexStyle(fFamilyIndex, pattern); in matchStyle()
76 return new SkStyleSet_Indirect(this, -1, fProxy->matchName(familyName)); in onMatchFamily()
119 std::unique_ptr<SkStreamAsset> stream(fProxy->getData(id.fDataId)); in createTypefaceFromFontId()
140 SkFontIdentity id = fProxy->matchNameStyle(familyName, fontStyle); in onMatchFamilyStyle()
149 SkFontIdentity id = fProxy->matchNameStyleCharacter(familyName, style, bcp47, in onMatchFamilyStyleCharacter()
183 SkFontIdentity fontId = this->fProxy->matchIndexStyle(0, style); in onLegacyMakeTypeface()

123