Rename GrAtlasMgr to GrAtlas (and other cleanup)
This CL also renames the old GrAtlas to ClientPlotUsage and moves it into the new GrAtlas.
R=jvanverth@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/355673002
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index 86258ab..c20d809 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -53,17 +53,17 @@
static const int kAtlasTextureWidth = 1024;
static const int kAtlasTextureHeight = 1024;
- SkASSERT(NULL == fAtlasMgr.get());
+ SkASSERT(NULL == fAtlas.get());
// The layer cache only gets 1 plot
SkISize textureSize = SkISize::Make(kAtlasTextureWidth, kAtlasTextureHeight);
- fAtlasMgr.reset(SkNEW_ARGS(GrAtlasMgr, (fContext->getGpu(), kSkia8888_GrPixelConfig,
- textureSize, 1, 1, false)));
+ fAtlas.reset(SkNEW_ARGS(GrAtlas, (fContext->getGpu(), kSkia8888_GrPixelConfig,
+ textureSize, 1, 1, false)));
}
void GrLayerCache::freeAll() {
fLayerHash.deleteAll();
- fAtlasMgr.free();
+ fAtlas.free();
}
GrCachedLayer* GrLayerCache::createLayer(const SkPicture* picture, int layerID) {