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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 friend class GrDashLinePathRenderer; // for access to drawBatch | 333 friend class GrDashLinePathRenderer; // for access to drawBatch |
333 friend class GrAAHairLinePathRenderer; // for access to drawBatch | 334 friend class GrAAHairLinePathRenderer; // for access to drawBatch |
334 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch | 335 friend class GrAALinearizingConvexPathRenderer; // for access to drawBatch |
335 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch | 336 friend class GrAADistanceFieldPathRenderer; // for access to drawBatch |
336 friend class GrDefaultPathRenderer; // for access to drawBatch | 337 friend class GrDefaultPathRenderer; // for access to drawBatch |
337 friend class GrPLSPathRenderer; // for access to drawBatch | 338 friend class GrPLSPathRenderer; // for access to drawBatch |
338 friend class GrMSAAPathRenderer; // for access to drawBatch | 339 friend class GrMSAAPathRenderer; // for access to drawBatch |
339 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch | 340 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch |
340 friend class GrTessellatingPathRenderer; // for access to drawBatch | 341 friend class GrTessellatingPathRenderer; // for access to drawBatch |
341 | 342 |
| 343 void internalClear(const GrFixedClip&, const GrColor, bool canIgnoreClip); |
| 344 |
342 bool drawFilledDRRect(const GrClip& clip, | 345 bool drawFilledDRRect(const GrClip& clip, |
343 const GrPaint& paint, | 346 const GrPaint& paint, |
344 const SkMatrix& viewMatrix, | 347 const SkMatrix& viewMatrix, |
345 const SkRRect& origOuter, | 348 const SkRRect& origOuter, |
346 const SkRRect& origInner); | 349 const SkRRect& origInner); |
347 | 350 |
348 bool drawFilledRect(const GrClip& clip, | 351 bool drawFilledRect(const GrClip& clip, |
349 const GrPaint& paint, | 352 const GrPaint& paint, |
350 const SkMatrix& viewMatrix, | 353 const SkMatrix& viewMatrix, |
351 const SkRect& rect, | 354 const SkRect& rect, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 386 |
384 sk_sp<SkColorSpace> fColorSpace; | 387 sk_sp<SkColorSpace> fColorSpace; |
385 SkSurfaceProps fSurfaceProps; | 388 SkSurfaceProps fSurfaceProps; |
386 GrAuditTrail* fAuditTrail; | 389 GrAuditTrail* fAuditTrail; |
387 | 390 |
388 // In debug builds we guard against improper thread handling | 391 // In debug builds we guard against improper thread handling |
389 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 392 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
390 }; | 393 }; |
391 | 394 |
392 #endif | 395 #endif |
OLD | NEW |