35 bool newProxy =
false;
41 resolve = &fResolves[index];
42 newFlags = ~resolve->fFlags &
flags;
43 resolve->fFlags |=
flags;
58 resolve->fMSAAResolveRect = renderTargetProxy->
msaaDirtyRect();
84 auto fakeOp = alloc->
curOp();
93bool GrTextureResolveRenderTask::onExecute(
GrOpFlushState* flushState) {
96 for (
int i = 0;
i < fResolves.
size(); ++
i) {
97 const Resolve& resolve = fResolves[
i];
107 for (
int i = 0;
i < fResolves.
size(); ++
i) {
108 const Resolve& resolve = fResolves[
i];
112 if (texture &&
texture->mipmapsAreDirty()) {
123void GrTextureResolveRenderTask::visitProxies_debugOnly(
const GrVisitProxyFunc&)
const {}
126#if defined(GR_TEST_UTILS)
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
int find(T *array, int N, T item)
GrRenderTask * getLastRenderTask(const GrSurfaceProxy *) const
bool regenerateMipMapLevels(GrTexture *)
void resolveRenderTarget(GrRenderTarget *, const SkIRect &resolveRect)
const SkIRect & msaaDirtyRect() const
GrSurfaceProxy * target(int i) const
void addDependency(GrDrawingManager *, GrSurfaceProxy *dependedOn, skgpu::Mipmapped, GrTextureResolveManager, const GrCaps &caps)
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > fTargets
void addTarget(GrDrawingManager *dm, const GrSurfaceProxyView &view)
void addInterval(GrSurfaceProxy *, unsigned int start, unsigned int end, ActualUse actualUse, AllowRecycling SkDEBUGCODE(, bool isDirectDstRead=false))
unsigned int curOp() const
virtual GrRenderTargetProxy * asRenderTargetProxy()
GrTexture * peekTexture() const
virtual GrTextureProxy * asTextureProxy()
GrRenderTarget * peekRenderTarget() const
skgpu::Mipmapped mipmapped() const
bool mipmapsAreDirty() const
void addProxy(GrDrawingManager *, sk_sp< GrSurfaceProxy > proxy, GrSurfaceProxy::ResolveFlags, const GrCaps &)
T & emplace_back(Args &&... args)
FlutterSemanticsFlag flags
static FunctionPtr Resolve(Thread *thread, Zone *zone, const GrowableArray< const Instance * > &caller_arguments, const Class &receiver_class, const String &name, const Array &descriptor)