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 "GrPaint.h" | 12 #include "GrPaint.h" |
13 #include "GrRenderTarget.h" | 13 #include "GrRenderTarget.h" |
14 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
15 #include "SkRegion.h" | 15 #include "SkRegion.h" |
16 #include "SkSurfaceProps.h" | 16 #include "SkSurfaceProps.h" |
17 #include "../private/GrInstancedPipelineInfo.h" | |
18 #include "../private/GrSingleOwner.h" | 17 #include "../private/GrSingleOwner.h" |
19 | 18 |
20 class GrAtlasTextContext; | 19 class GrAtlasTextContext; |
21 class GrAuditTrail; | 20 class GrAuditTrail; |
22 class GrClip; | 21 class GrClip; |
23 class GrContext; | 22 class GrContext; |
24 class GrDrawBatch; | 23 class GrDrawBatch; |
25 class GrDrawContextPriv; | 24 class GrDrawContextPriv; |
26 class GrDrawPathBatchBase; | 25 class GrDrawPathBatchBase; |
27 class GrDrawingManager; | 26 class GrDrawingManager; |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 GrDrawTarget* getDrawTarget(); | 339 GrDrawTarget* getDrawTarget(); |
341 | 340 |
342 GrDrawingManager* fDrawingManager; | 341 GrDrawingManager* fDrawingManager; |
343 sk_sp<GrRenderTarget> fRenderTarget; | 342 sk_sp<GrRenderTarget> fRenderTarget; |
344 | 343 |
345 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked | 344 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked |
346 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. | 345 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. |
347 GrDrawTarget* fDrawTarget; | 346 GrDrawTarget* fDrawTarget; |
348 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; | 347 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; |
349 GrContext* fContext; | 348 GrContext* fContext; |
350 GrInstancedPipelineInfo fInstancedPipelineInfo; | |
351 | 349 |
352 SkSurfaceProps fSurfaceProps; | 350 SkSurfaceProps fSurfaceProps; |
353 GrAuditTrail* fAuditTrail; | 351 GrAuditTrail* fAuditTrail; |
354 | 352 |
355 // In debug builds we guard against improper thread handling | 353 // In debug builds we guard against improper thread handling |
356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 354 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
357 }; | 355 }; |
358 | 356 |
359 #endif | 357 #endif |
OLD | NEW |