Lines Matching refs:view
178 // Add a draw on 'canvas' that will introduce a ref on the 'wh' view
186 auto view = AccessCachedView(rContext, this->threadSafeCache(),
188 SkASSERT(view);
193 view,
223 auto [view, xtraData] = threadSafeCache->findWithData(key);
224 if (!view.proxy()) {
243 if (!view.proxy()->refCntGreaterThan(expectedNumRefs+1) || // +1 for 'view's ref
244 view.proxy()->refCntGreaterThan(expectedNumRefs+2)) {
662 auto view = sdc->readSurfaceView();
664 SkASSERT(view.swizzle() == lazyView.swizzle());
665 SkASSERT(view.origin() == lazyView.origin());
666 trampoline->fProxy = view.asTextureProxyRef();
686 auto [view, data] = threadSafeCache->findOrAddWithData(key, lazyView);
687 if (view != lazyView) {
689 return view;
702 return view;
712 return view;
714 GrSurfaceProxyView view;
717 if (view = threadSafeCache->find(key); !failLookup && view) {
719 return view;
724 view = CreateViewOnCpu(rContext, wh, stats);
725 SkASSERT(view);
727 auto [newView, data] = threadSafeCache->addWithData(key, view);
728 if (view == newView && id != kNoID) {
738 // Case 1: ensure two DDL recorders share the view/vertexData
841 // view/vertexData
1385 // Case 14: Test out mixing & matching view & vertex data w/ recycling of the cache entries to