Lines Matching refs:proxy
119 bool allUnused = std::all_of(proxies.begin(), proxies.end(), [&](GrSurfaceProxy* proxy) {
121 return task && task->isUsed(proxy);
477 static void resolve_and_mipmap(GrGpu* gpu, GrSurfaceProxy* proxy) {
478 if (!proxy->isInstantiated()) {
485 if (proxy->requiresManualMSAAResolve()) {
486 auto* rtProxy = proxy->asRenderTargetProxy();
499 if (auto* textureProxy = proxy->asTextureProxy()) {
534 for (GrSurfaceProxy* proxy : proxies) {
535 resolve_and_mipmap(gpu, proxy);
559 void GrDrawingManager::setLastRenderTask(const GrSurfaceProxy* proxy, GrRenderTask* task) {
561 if (auto prior = this->getLastRenderTask(proxy)) {
565 uint32_t key = proxy->uniqueID().asUInt();
573 GrRenderTask* GrDrawingManager::getLastRenderTask(const GrSurfaceProxy* proxy) const {
574 auto entry = fLastRenderTasks.find(proxy->uniqueID().asUInt());
578 skgpu::v1::OpsTask* GrDrawingManager::getLastOpsTask(const GrSurfaceProxy* proxy) const {
579 GrRenderTask* task = this->getLastRenderTask(proxy);
624 // Propagate the DDL proxy's state information to the replay target.
637 // Here we jam the proxy that backs the current replay SkSurface into the LazyProxyData.
638 // The lazy proxy that references it (in the DDL opsTasks) will then steal its GrTexture.
758 // in sorting and opsTask reduction mode) the render tasks that depend on any proxy's current
760 // the mipmapped version of 'proxy', they will then come to depend on the render task being
770 void GrDrawingManager::newWaitRenderTask(sk_sp<GrSurfaceProxy> proxy,
776 sk_sp<GrWaitRenderTask> waitTask = sk_make_sp<GrWaitRenderTask>(GrSurfaceProxyView(proxy),
781 if (fActiveOpsTask && (fActiveOpsTask->target(0) == proxy.get())) {
782 SkASSERT(this->getLastRenderTask(proxy.get()) == fActiveOpsTask);
786 // map generation which is the main advantage of going through the proxy version.
788 // on the proxy, add the dependency, and then reset the lastRenderTask to
802 // to the DAG. Since it is the last task now we call setLastRenderTask on the proxy. If
803 // there is a lastTask on the proxy we make waitTask depend on that task. This
806 if (GrRenderTask* lastTask = this->getLastRenderTask(proxy.get())) {
809 this->setLastRenderTask(proxy.get(), waitTask.get());
857 // making a new task that targets the same proxy. However, if we first close the active ops
858 // task, then fail to make a copy task, the next active ops task may target the same proxy. This