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

Side by Side Diff: src/gpu/GrBatchAtlas.h

Issue 1698503002: Remove last bit of privacy violation for GrAtlasTextBlob (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase + nits Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/batches/GrAtlasTextBatch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrBatchAtlas_DEFINED 8 #ifndef GrBatchAtlas_DEFINED
9 #define GrBatchAtlas_DEFINED 9 #define GrBatchAtlas_DEFINED
10 10
11 #include "GrTexture.h" 11 #include "GrTexture.h"
12 #include "batches/GrDrawBatch.h"
13 #include "SkPoint.h" 12 #include "SkPoint.h"
14 #include "SkTDArray.h" 13 #include "SkTDArray.h"
15 #include "SkTInternalLList.h" 14 #include "SkTInternalLList.h"
16 15
16 #include "batches/GrDrawBatch.h"
17
17 class GrRectanizer; 18 class GrRectanizer;
18 19
19 struct GrBatchAtlasConfig { 20 struct GrBatchAtlasConfig {
20 int numPlotsX() const { return fWidth / fPlotWidth; } 21 int numPlotsX() const { return fWidth / fPlotWidth; }
21 int numPlotsY() const { return fHeight / fPlotWidth; } 22 int numPlotsY() const { return fHeight / fPlotWidth; }
22 int fWidth; 23 int fWidth;
23 int fHeight; 24 int fHeight;
24 int fPlotWidth; 25 int fPlotWidth;
25 int fPlotHeight; 26 int fPlotHeight;
26 }; 27 };
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 }; 257 };
257 258
258 SkTDArray<EvictionData> fEvictionCallbacks; 259 SkTDArray<EvictionData> fEvictionCallbacks;
259 // allocated array of GrBatchPlots 260 // allocated array of GrBatchPlots
260 SkAutoTUnref<BatchPlot>* fPlotArray; 261 SkAutoTUnref<BatchPlot>* fPlotArray;
261 // LRU list of GrPlots (MRU at head - LRU at tail) 262 // LRU list of GrPlots (MRU at head - LRU at tail)
262 GrBatchPlotList fPlotList; 263 GrBatchPlotList fPlotList;
263 }; 264 };
264 265
265 #endif 266 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/batches/GrAtlasTextBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698