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

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

Issue 1151283004: Split drawing functionality out of GrContext and into new GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-GPU builds Created 5 years, 7 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 | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrAtlasTextContext.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrAtlas_DEFINED 9 #ifndef GrAtlas_DEFINED
10 #define GrAtlas_DEFINED 10 #define GrAtlas_DEFINED
11 11
12 12
13 #include "SkTDArray.h"
13 #include "GrTexture.h" 14 #include "GrTexture.h"
14 #include "GrDrawTarget.h"
15 #include "SkPoint.h" 15 #include "SkPoint.h"
16 #include "SkTInternalLList.h" 16 #include "SkTInternalLList.h"
17 17
18 class GrGpu; 18 class GrGpu;
19 class GrRectanizer; 19 class GrRectanizer;
20 class GrAtlas; 20 class GrAtlas;
21 21
22 // The backing GrTexture for a set of GrAtlases is broken into a spatial grid of GrPlots. When 22 // The backing GrTexture for a set of GrAtlases is broken into a spatial grid of GrPlots. When
23 // a GrAtlas needs space on the texture, it requests a GrPlot. Each GrAtlas can claim one 23 // a GrAtlas needs space on the texture, it requests a GrPlot. Each GrAtlas can claim one
24 // or more GrPlots. The GrPlots keep track of subimage placement via their GrRec tanizer. Once a 24 // or more GrPlots. The GrPlots keep track of subimage placement via their GrRec tanizer. Once a
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int fNumPlotsY; 128 int fNumPlotsY;
129 bool fBatchUploads; 129 bool fBatchUploads;
130 130
131 // allocated array of GrPlots 131 // allocated array of GrPlots
132 GrPlot* fPlotArray; 132 GrPlot* fPlotArray;
133 // LRU list of GrPlots (MRU at head - LRU at tail) 133 // LRU list of GrPlots (MRU at head - LRU at tail)
134 GrPlotList fPlotList; 134 GrPlotList fPlotList;
135 }; 135 };
136 136
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrAtlasTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698