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

Unified Diff: src/gpu/GrBatchAtlas.h

Issue 1413403009: Clean up GrBatchAtlas a bit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bpp size Created 5 years, 1 month 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/GrBatchAtlas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBatchAtlas.h
diff --git a/src/gpu/GrBatchAtlas.h b/src/gpu/GrBatchAtlas.h
index 544e1b03a01ecb411cc3c0c3928f0223ccaedb12..0f36951922f47558ea10a2282fa1d8ba38b77645 100644
--- a/src/gpu/GrBatchAtlas.h
+++ b/src/gpu/GrBatchAtlas.h
@@ -17,8 +17,6 @@
class BatchPlot;
class GrRectanizer;
-typedef SkTInternalLList<BatchPlot> GrBatchPlotList;
-
struct GrBatchAtlasConfig {
int numPlotsX() const { return fWidth / fPlotWidth; }
int numPlotsY() const { return fHeight / fPlotWidth; }
@@ -120,6 +118,8 @@ public:
}
private:
+ typedef SkTInternalLList<BatchPlot> GrBatchPlotList;
+
static uint32_t GetIndexFromID(AtlasID id) {
return id & 0xffff;
}
@@ -136,11 +136,8 @@ private:
inline void processEviction(AtlasID);
GrTexture* fTexture;
- uint32_t fNumPlotsX;
- uint32_t fNumPlotsY;
- uint32_t fPlotWidth;
- uint32_t fPlotHeight;
- size_t fBPP;
+ SkDEBUGCODE(uint32_t fNumPlots;)
+
uint64_t fAtlasGeneration;
struct EvictionData {
« no previous file with comments | « no previous file | src/gpu/GrBatchAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698