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

Unified Diff: src/gpu/gl/GrGLRenderTarget.h

Issue 1115233002: Fix gpu memory accounting for auto-resolving MSAA. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cache the total computed vram size, not the color values per pixel Created 5 years, 8 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLRenderTarget.h
diff --git a/src/gpu/gl/GrGLRenderTarget.h b/src/gpu/gl/GrGLRenderTarget.h
index 4d3061c4e487a29c1a4500805d3f7ddef360ee9a..7c0c08cdf68b9c94e673daf2b04b0811b59afdd2 100644
--- a/src/gpu/gl/GrGLRenderTarget.h
+++ b/src/gpu/gl/GrGLRenderTarget.h
@@ -86,10 +86,9 @@ private:
// we want the rendering to be at top left (GL has origin in bottom left)
GrGLIRect fViewport;
- // onGpuMemorySize() needs to know what how many color values are owned per pixel. However,
- // abandon and release zero out the IDs and the cache needs to know the size even after those
- // actions.
- uint8_t fColorValuesPerPixel;
+ // onGpuMemorySize() needs to know the VRAM footprint of the FBO(s). However, abandon and
+ // release zero out the IDs and the cache needs to know the size even after those actions.
+ size_t fGpuMemorySize;
typedef GrRenderTarget INHERITED;
};
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698