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

Unified Diff: src/gpu/GrAtlas.h

Issue 217423014: Minor changes to GrFontCache system (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review comments Created 6 years, 9 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 | « src/core/SkGlyphCache.h ('k') | 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
===================================================================
--- src/gpu/GrAtlas.h (revision 14007)
+++ src/gpu/GrAtlas.h (working copy)
@@ -33,9 +33,6 @@
public:
SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrPlot);
- int getOffsetX() const { return fOffset.fX; }
- int getOffsetY() const { return fOffset.fY; }
-
GrTexture* texture() const { return fTexture; }
bool addSubImage(int width, int height, const void*, GrIPoint16*);
@@ -48,6 +45,7 @@
private:
GrPlot();
~GrPlot(); // does not try to delete the fNext field
+ void init(GrAtlasMgr* mgr, int offX, int offY, int width, int height, size_t bpp);
// for recycling
GrDrawTarget::DrawToken fDrawToken;
@@ -55,7 +53,7 @@
GrTexture* fTexture;
GrRectanizer* fRects;
GrAtlasMgr* fAtlasMgr;
- GrIPoint16 fOffset;
+ GrIPoint16 fOffset; // the offset of the plot in the backing texture
size_t fBytesPerPixel;
friend class GrAtlasMgr;
@@ -65,7 +63,8 @@
class GrAtlasMgr {
public:
- GrAtlasMgr(GrGpu*, GrPixelConfig);
+ GrAtlasMgr(GrGpu*, GrPixelConfig, const SkISize& backingTextureSize,
+ int numPlotsX, int numPlotsY);
~GrAtlasMgr();
// add subimage of width, height dimensions to atlas
@@ -89,6 +88,9 @@
GrGpu* fGpu;
GrPixelConfig fPixelConfig;
GrTexture* fTexture;
+ SkISize fBackingTextureSize;
+ int fNumPlotsX;
+ int fNumPlotsY;
// allocated array of GrPlots
GrPlot* fPlotArray;
« no previous file with comments | « src/core/SkGlyphCache.h ('k') | src/gpu/GrAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698