blob: df2de81c3452f9287420635df8a80830590219c4 [file] [log] [blame]
* Copyright 2019 Google LLC
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef GrTextureResolveRenderTask_DEFINED
#define GrTextureResolveRenderTask_DEFINED
#include "src/gpu/GrRenderTask.h"
class GrTextureResolveRenderTask final : public GrRenderTask {
GrTextureResolveRenderTask() : GrRenderTask() {}
void addProxy(GrDrawingManager*, sk_sp<GrSurfaceProxy> proxy,
GrSurfaceProxy::ResolveFlags, const GrCaps&);
bool onIsUsed(GrSurfaceProxy* proxy) const override {
return false;
void gatherProxyIntervals(GrResourceAllocator*) const override;
ExpectedOutcome onMakeClosed(GrRecordingContext*, SkIRect*) override {
return ExpectedOutcome::kTargetUnchanged;
bool onExecute(GrOpFlushState*) override;
const char* name() const final { return "TextureResolve"; }
#ifdef SK_DEBUG
void visitProxies_debugOnly(const GrVisitProxyFunc&) const override;
struct Resolve {
Resolve(GrSurfaceProxy::ResolveFlags flags) : fFlags(flags) {}
GrSurfaceProxy::ResolveFlags fFlags;
SkIRect fMSAAResolveRect;
SkSTArray<4, Resolve> fResolves;