#include "src/gpu/ganesh/GrTextureResolveRenderTask.h"
#include "include/gpu/GpuTypes.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMacros.h"
#include "src/gpu/ganesh/GrDrawingManager.h"
#include "src/gpu/ganesh/GrGpu.h"
#include "src/gpu/ganesh/GrOpFlushState.h"
#include "src/gpu/ganesh/GrRenderTargetProxy.h"
#include "src/gpu/ganesh/GrResourceAllocator.h"
#include "src/gpu/ganesh/GrSurfaceProxyView.h"
#include "src/gpu/ganesh/GrTexture.h"
#include "src/gpu/ganesh/GrTextureProxy.h"
#include "src/gpu/ganesh/GrTextureResolveManager.h"
#include <algorithm>
#include <cstddef>
#include <utility>
class GrRenderTarget;
void GrTextureResolveRenderTask::addProxy(GrDrawingManager* drawingMgr,
sk_sp<GrSurfaceProxy> proxyRef,
GrSurfaceProxy::ResolveFlags flags,
const GrCaps& caps) { … }
void GrTextureResolveRenderTask::gatherProxyIntervals(GrResourceAllocator* alloc) const { … }
bool GrTextureResolveRenderTask::onExecute(GrOpFlushState* flushState) { … }
#ifdef SK_DEBUG
void GrTextureResolveRenderTask::visitProxies_debugOnly(const GrVisitProxyFunc&) const { … }
#endif
#if defined(GPU_TEST_UTILS)
GrSurfaceProxy::ResolveFlags
GrTextureResolveRenderTask::flagsForProxy(sk_sp<GrSurfaceProxy> proxy) const {
if (auto found = std::find(fTargets.begin(), fTargets.end(), proxy);
found != fTargets.end()) {
return fResolves[found - fTargets.begin()].fFlags;
}
return GrSurfaceProxy::ResolveFlags::kNone;
}
#endif