| 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 | 16 |
| 16 class GrClip; | 17 class GrClip; |
| 17 class GrContext; | 18 class GrContext; |
| 18 class GrDrawBatch; | 19 class GrDrawBatch; |
| 19 class GrDrawPathBatchBase; | 20 class GrDrawPathBatchBase; |
| 20 class GrDrawingManager; | 21 class GrDrawingManager; |
| 21 class GrDrawTarget; | 22 class GrDrawTarget; |
| 22 class GrPaint; | 23 class GrPaint; |
| 23 class GrPathProcessor; | 24 class GrPathProcessor; |
| 24 class GrPipelineBuilder; | 25 class GrPipelineBuilder; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 300 |
| 300 GrDrawingManager* fDrawingManager; | 301 GrDrawingManager* fDrawingManager; |
| 301 GrRenderTarget* fRenderTarget; | 302 GrRenderTarget* fRenderTarget; |
| 302 | 303 |
| 303 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked | 304 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked |
| 304 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. | 305 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. |
| 305 GrDrawTarget* fDrawTarget; | 306 GrDrawTarget* fDrawTarget; |
| 306 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana
ger | 307 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana
ger |
| 307 | 308 |
| 308 SkSurfaceProps fSurfaceProps; | 309 SkSurfaceProps fSurfaceProps; |
| 310 |
| 311 // In debug builds we guard against improper thread handling |
| 312 SkDEBUGCODE(mutable GrSingleOwner fSingleOwner;) |
| 309 }; | 313 }; |
| 310 | 314 |
| 311 #endif | 315 #endif |
| OLD | NEW |