Use mipmapping/protected to lookup scratch textures.
Include protected in scratch key.
Change-Id: I0dfc58c9f54e8279a39adf4bad808b7e0e72cba2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/241397
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index f977617..ad861d5 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -84,9 +84,9 @@
// We're about to be idle in the resource cache. Do our part to trigger the idle callbacks.
fIdleProcs.reset();
}
+ void computeScratchKey(GrScratchKey*) const override;
private:
- void computeScratchKey(GrScratchKey*) const override;
size_t onGpuMemorySize() const override;
void markMipMapsDirty();
void markMipMapsClean();