| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |