Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: include/gpu/GrTexture.h

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrTexture.h
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index 1d589eddcef3ba44504cda3e1785a263cbda6996..f597f57c87c6de7d902d573151e912db0188c612 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -46,12 +46,14 @@ public:
inline const GrTexturePriv texturePriv() const;
protected:
- GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&, GrSLType, bool wasMipMapDataProvided);
-
+ GrTexture(GrGpu*, SkBudgeted, const GrSurfaceDesc&, GrSLType, bool wasMipMapDataProvided);
+ void initScratchKeyIfNeeded();
void validateDesc() const;
-private:
+ // In protected because subclass GrGLTexture calls this version.
size_t onGpuMemorySize() const override;
+
+private:
void dirtyMipMaps(bool mipMapsDirty);
enum MipMapsStatus {
« no previous file with comments | « include/gpu/GrSurface.h ('k') | include/gpu/GrTextureProvider.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698