Further centralize computation of GrSurface VRAM consumption
authorRobert Phillips <robertphillips@google.com>
Fri, 4 Nov 2016 14:23:43 +0000 (10:23 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 4 Nov 2016 15:35:51 +0000 (15:35 +0000)
commitccd3c8937fce4bb28df19533ed043cad209e277d
tree2db35e0f6715ee21118d39633c0db10a8c8fb3f6
parent544da7a7c399ab9775d6dbb441a5a695569f9939
Further centralize computation of GrSurface VRAM consumption

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4383

Change-Id: I054b74f2cd15f904f8e05af0fda58d6e8a523eb9
Reviewed-on: https://skia-review.googlesource.com/4383
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
19 files changed:
include/core/SkSurface.h
include/gpu/GrRenderTarget.h
include/gpu/GrSurface.h
include/gpu/GrTexture.h
src/gpu/GrRenderTarget.cpp
src/gpu/GrRenderTargetProxy.cpp
src/gpu/GrSurface.cpp
src/gpu/GrTexture.cpp
src/gpu/GrTextureProxy.cpp
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLRenderTarget.cpp
src/gpu/gl/GrGLRenderTarget.h
src/gpu/gl/GrGLTexture.cpp
src/gpu/gl/GrGLTexture.h
src/gpu/gl/GrGLTextureRenderTarget.cpp
src/gpu/gl/GrGLTextureRenderTarget.h
src/gpu/vk/GrVkRenderTarget.h
src/gpu/vk/GrVkTextureRenderTarget.h
tests/ResourceCacheTest.cpp