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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 1699073004: Delete GrTextContext (Closed) Base URL: https://skia.googlesource.com/skia.git@sever-the-cord
Patch Set: 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/GrDrawingManager.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 GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrRenderTarget.h" 12 #include "GrRenderTarget.h"
13 #include "SkRefCnt.h" 13 #include "SkRefCnt.h"
14 #include "SkSurfaceProps.h" 14 #include "SkSurfaceProps.h"
15 #include "../private/GrSingleOwner.h" 15 #include "../private/GrSingleOwner.h"
16 16
17 class GrAtlasTextContext;
17 class GrAuditTrail; 18 class GrAuditTrail;
18 class GrClip; 19 class GrClip;
19 class GrContext; 20 class GrContext;
20 class GrDrawBatch; 21 class GrDrawBatch;
21 class GrDrawPathBatchBase; 22 class GrDrawPathBatchBase;
22 class GrDrawingManager; 23 class GrDrawingManager;
23 class GrDrawTarget; 24 class GrDrawTarget;
24 class GrPaint; 25 class GrPaint;
25 class GrPathProcessor; 26 class GrPathProcessor;
26 class GrPipelineBuilder; 27 class GrPipelineBuilder;
27 class GrRenderTarget; 28 class GrRenderTarget;
28 class GrStrokeInfo; 29 class GrStrokeInfo;
29 class GrSurface; 30 class GrSurface;
30 class GrTextContext;
31 class SkDrawFilter; 31 class SkDrawFilter;
32 struct SkIPoint; 32 struct SkIPoint;
33 struct SkIRect; 33 struct SkIRect;
34 class SkMatrix; 34 class SkMatrix;
35 class SkPaint; 35 class SkPaint;
36 class SkPath; 36 class SkPath;
37 struct SkPoint; 37 struct SkPoint;
38 struct SkRect; 38 struct SkRect;
39 class SkRRect; 39 class SkRRect;
40 struct SkRSXform; 40 struct SkRSXform;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 bool useAA, 303 bool useAA,
304 const SkPath&, 304 const SkPath&,
305 const GrStrokeInfo&); 305 const GrStrokeInfo&);
306 306
307 // This entry point allows the GrTextContext-derived classes to add their ba tches to 307 // This entry point allows the GrTextContext-derived classes to add their ba tches to
308 // the drawTarget. 308 // the drawTarget.
309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); 309 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch);
310 310
311 GrDrawTarget* getDrawTarget(); 311 GrDrawTarget* getDrawTarget();
312 312
313 GrDrawingManager* fDrawingManager; 313 GrDrawingManager* fDrawingManager;
314 GrRenderTarget* fRenderTarget; 314 GrRenderTarget* fRenderTarget;
315 315
316 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 316 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
317 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 317 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
318 GrDrawTarget* fDrawTarget; 318 GrDrawTarget* fDrawTarget;
319 GrTextContext* fAtlasTextContext; // lazily gotten from GrContext::Drawin gManager 319 GrAtlasTextContext* fAtlasTextContext;
320 GrContext* fContext; 320 GrContext* fContext;
321 321
322 SkSurfaceProps fSurfaceProps; 322 SkSurfaceProps fSurfaceProps;
323 GrAuditTrail* fAuditTrail; 323 GrAuditTrail* fAuditTrail;
324 324
325 // In debug builds we guard against improper thread handling 325 // In debug builds we guard against improper thread handling
326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
327 }; 327 };
328 328
329 #endif 329 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrDrawingManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698