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" | 17 #include "../private/GrInstancedPipelineInfo.h" |
18 #include "../private/GrSingleOwner.h" | 18 #include "../private/GrSingleOwner.h" |
19 | 19 |
20 class GrAuditTrail; | 20 class GrAuditTrail; |
21 class GrClip; | 21 class GrClip; |
22 class GrContext; | 22 class GrContext; |
23 class GrDrawBatch; | 23 class GrDrawBatch; |
24 class GrDrawContextPriv; | 24 class GrDrawContextPriv; |
25 class GrDrawPathBatchBase; | 25 class GrDrawPathBatchBase; |
26 class GrDrawingManager; | 26 class GrDrawingManager; |
27 class GrDrawTarget; | 27 class GrDrawTarget; |
| 28 class GrFixedClip; |
28 class GrPaint; | 29 class GrPaint; |
29 class GrPathProcessor; | 30 class GrPathProcessor; |
30 class GrPipelineBuilder; | 31 class GrPipelineBuilder; |
31 class GrRenderTarget; | 32 class GrRenderTarget; |
32 class GrStyle; | 33 class GrStyle; |
33 class GrSurface; | 34 class GrSurface; |
34 struct GrUserStencilSettings; | 35 struct GrUserStencilSettings; |
35 class SkDrawFilter; | 36 class SkDrawFilter; |
36 struct SkIPoint; | 37 struct SkIPoint; |
37 struct SkIRect; | 38 struct SkIRect; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 friend class GrDashLinePathRenderer; // for access to drawBatch | 347 friend class GrDashLinePathRenderer; // for access to drawBatch |
347 friend class GrAAHairLinePathRenderer; // for access to drawBatch | 348 friend class GrAAHairLinePathRenderer; // for access to drawBatch |
348 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch | 349 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch |
349 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch | 350 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch |
350 friend class GrDefaultPathRenderer; // for access to drawBatch | 351 friend class GrDefaultPathRenderer; // for access to drawBatch |
351 friend class GrPLSPathRenderer; // for access to drawBatch | 352 friend class GrPLSPathRenderer; // for access to drawBatch |
352 friend class GrMSAAPathRenderer; // for access to drawBatch | 353 friend class GrMSAAPathRenderer; // for access to drawBatch |
353 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch | 354 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch |
354 friend class GrTessellatingPathRenderer; // for access to drawBatch | 355 friend class GrTessellatingPathRenderer; // for access to drawBatch |
355 | 356 |
| 357 void internalClear(const GrFixedClip&, const GrColor, bool canIgnoreClip); |
| 358 |
356 bool drawFilledDRRect(const GrClip& clip, | 359 bool drawFilledDRRect(const GrClip& clip, |
357 const GrPaint& paint, | 360 const GrPaint& paint, |
358 const SkMatrix& viewMatrix, | 361 const SkMatrix& viewMatrix, |
359 const SkRRect& origOuter, | 362 const SkRRect& origOuter, |
360 const SkRRect& origInner); | 363 const SkRRect& origInner); |
361 | 364 |
362 bool drawFilledRect(const GrClip& clip, | 365 bool drawFilledRect(const GrClip& clip, |
363 const GrPaint& paint, | 366 const GrPaint& paint, |
364 const SkMatrix& viewMatrix, | 367 const SkMatrix& viewMatrix, |
365 const SkRect& rect, | 368 const SkRect& rect, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 | 400 |
398 sk_sp<SkColorSpace> fColorSpace; | 401 sk_sp<SkColorSpace> fColorSpace; |
399 SkSurfaceProps fSurfaceProps; | 402 SkSurfaceProps fSurfaceProps; |
400 GrAuditTrail* fAuditTrail; | 403 GrAuditTrail* fAuditTrail; |
401 | 404 |
402 // In debug builds we guard against improper thread handling | 405 // In debug builds we guard against improper thread handling |
403 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 406 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
404 }; | 407 }; |
405 | 408 |
406 #endif | 409 #endif |
OLD | NEW |