Home
last modified time | relevance | path

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

123

/external/skia/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/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/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 …]
/external/skia/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 …]
/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;
/external/skia/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) && SkToBool(fProxy->fLazyInstantiateCallback) && in isSafeToDeinstantiate()
[all …]
DGrSurfaceProxy.cpp398 SkASSERT(GrSurfaceProxy::LazyState::kFully != fProxy->lazyInstantiationState()); in exactify()
403 SkASSERT(SkBackingFit::kApprox == fProxy->fFit); in exactify()
405 if (fProxy->fTarget) { in exactify()
411 fProxy->fWidth = fProxy->fTarget->width(); in exactify()
412 fProxy->fHeight = fProxy->fTarget->height(); in exactify()
418 fProxy->fFit = SkBackingFit::kExact; in exactify()
426 SkASSERT(GrSurfaceProxy::LazyState::kNot != fProxy->lazyInstantiationState()); in doLazyInstantiation()
429 if (fProxy->asTextureProxy() && fProxy->asTextureProxy()->getUniqueKey().isValid()) { in doLazyInstantiation()
432 fProxy->asTextureProxy()->getUniqueKey()); in doLazyInstantiation()
436 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
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;
DGrContextThreadSafeProxyPriv.h21 uint32_t contextID() const { return fProxy->contextID(); } in contextID()
23 bool matches(GrContext_Base* candidate) const { return fProxy->matches(candidate); } in matches()
25 const GrContextOptions& options() const { return fProxy->options(); } in options()
27 const GrCaps* caps() const { return fProxy->caps(); } in caps()
28 sk_sp<const GrCaps> refCaps() const { return fProxy->refCaps(); } in refCaps()
40 explicit GrContextThreadSafeProxyPriv(GrContextThreadSafeProxy* proxy) : fProxy(proxy) {} in GrContextThreadSafeProxyPriv()
48 GrContextThreadSafeProxy* fProxy; variable
/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 __anon4797f7ea0111::NonAALatticeOp
/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/skia/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/skia/src/gpu/ops/
DGrTextureOp.cpp187 fProxies[p].fProxy->completedRead(); in ~TextureOp()
189 fProxies[p].fProxy->unref(); in ~TextureOp()
201 func(fProxies[p].fProxy); in visitProxies()
211 str.appendf("Proxy ID: %d, Filter: %d\n", fProxies[p].fProxy->uniqueID().asUInt(), in dumpInfo()
236 fProxies[p].fProxy->addPendingRead(); in finalize()
237 fProxies[p].fProxy->unref(); in finalize()
297 static_cast<unsigned>(fProxies[0].fProxy->canSkipResourceAllocator()); in TextureOp()
317 fProxies[p].fProxy = SkRef(set[p].fProxy.get()); in TextureOp()
319 SkASSERT(fProxies[p].fProxy->textureType() == fProxies[0].fProxy->textureType()); in TextureOp()
320 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()
198 auto opaque = fPatches[0].fColor.isOpaque() && GrPixelConfigIsOpaque(fProxy->config()) in finalize()
212 auto gp = LatticeGP::Make(gpu, fProxy.get(), fColorSpaceXform, fFilter, fWideColor); in onPrepareDraws()
257 Sk4f scales(1.f / fProxy->width(), 1.f / fProxy->height(), in onPrepareDraws()
258 1.f / fProxy->width(), 1.f / fProxy->height()); in onPrepareDraws()
268 if (fProxy->origin() == kBottomLeft_GrSurfaceOrigin) { in onPrepareDraws()
290 fixedDynamicState->fPrimitiveProcessorTextures[0] = fProxy.get(); in onPrepareDraws()
300 if (fProxy != that->fProxy) { in onCombineIfPossible()
327 sk_sp<GrTextureProxy> fProxy; member in __anonef2a4e530111::NonAALatticeOp
/external/skia/gm/
Dimage_pict.cpp159 fProxy = as_IB(image)->asTextureProxyRef(fCtx.get()); 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/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/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/skia/src/image/
DSkImage_Gpu.h32 return fProxy.get(); in peekProxy()
35 return fProxy; in asTextureProxyRef()
38 bool onIsTextureBacked() const override { return SkToBool(fProxy.get()); } in onIsTextureBacked()
67 sk_sp<GrTextureProxy> fProxy;
/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