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

Unified Diff: src/gpu/GrAtlas.h

Issue 24751003: GrAtlas refactor: Replace GrMaskFormat usage in GrAtlas with GrPixelConfig. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix nits Created 7 years, 3 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/GrAtlas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAtlas.h
diff --git a/src/gpu/GrAtlas.h b/src/gpu/GrAtlas.h
index 3f9da8cb13703eeea01b5aaa7de95ba9b40f84a9..b2acaee8e277d35e0146745c41a4f7849d249424 100644
--- a/src/gpu/GrAtlas.h
+++ b/src/gpu/GrAtlas.h
@@ -23,7 +23,6 @@ class GrAtlas {
public:
int getPlotX() const { return fPlot.fX; }
int getPlotY() const { return fPlot.fY; }
- GrMaskFormat getMaskFormat() const { return fMaskFormat; }
GrTexture* texture() const { return fTexture; }
@@ -43,7 +42,7 @@ public:
void setDrawToken(GrDrawTarget::DrawToken draw) { fDrawToken = draw; }
private:
- GrAtlas(GrAtlasMgr*, int plotX, int plotY, GrMaskFormat format);
+ GrAtlas(GrAtlasMgr*, int plotX, int plotY, int bpp);
~GrAtlas(); // does not try to delete the fNext field
// for recycling
@@ -55,7 +54,7 @@ private:
GrRectanizer* fRects;
GrAtlasMgr* fAtlasMgr;
GrIPoint16 fPlot;
- GrMaskFormat fMaskFormat;
+ int fBytesPerPixel;
friend class GrAtlasMgr;
};
@@ -64,7 +63,7 @@ class GrPlotMgr;
class GrAtlasMgr {
public:
- GrAtlasMgr(GrGpu*, GrMaskFormat);
+ GrAtlasMgr(GrGpu*, GrPixelConfig);
~GrAtlasMgr();
GrAtlas* addToAtlas(GrAtlas**, int width, int height, const void*, GrIPoint16*);
@@ -78,10 +77,10 @@ public:
void freePlot(int x, int y);
private:
- GrGpu* fGpu;
- GrMaskFormat fMaskFormat;
- GrTexture* fTexture;
- GrPlotMgr* fPlotMgr;
+ GrGpu* fGpu;
+ GrPixelConfig fPixelConfig;
+ GrTexture* fTexture;
+ GrPlotMgr* fPlotMgr;
};
#endif
« no previous file with comments | « no previous file | src/gpu/GrAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698