need a separate texture for each maskformat in atlasmgr
git-svn-id: http://skia.googlecode.com/svn/trunk@942 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrAtlas.h b/gpu/include/GrAtlas.h
index 9fd2cab..a933842 100644
--- a/gpu/include/GrAtlas.h
+++ b/gpu/include/GrAtlas.h
@@ -72,7 +72,10 @@
GrAtlas* addToAtlas(GrAtlas*, int width, int height, const void*,
GrMaskFormat, GrIPoint16*);
- GrTexture* getTexture() const { return fTexture; }
+ GrTexture* getTexture(GrMaskFormat format) const {
+ GrAssert((unsigned)format < kCount_GrMaskFormats);
+ return fTexture[format];
+ }
// to be called by ~GrAtlas()
void freePlot(int x, int y);
@@ -81,7 +84,7 @@
private:
GrGpu* fGpu;
- GrTexture* fTexture;
+ GrTexture* fTexture[kCount_GrMaskFormats];
GrPlotMgr* fPlotMgr;
};