OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrDrawContextPriv_DEFINED | 8 #ifndef GrDrawContextPriv_DEFINED |
9 #define GrDrawContextPriv_DEFINED | 9 #define GrDrawContextPriv_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 void clearStencilClip(const SkIRect& rect, bool insideClip); | 28 void clearStencilClip(const SkIRect& rect, bool insideClip); |
29 | 29 |
30 void stencilRect(const GrFixedClip& clip, | 30 void stencilRect(const GrFixedClip& clip, |
31 const GrUserStencilSettings* ss, | 31 const GrUserStencilSettings* ss, |
32 bool useHWAA, | 32 bool useHWAA, |
33 const SkMatrix& viewMatrix, | 33 const SkMatrix& viewMatrix, |
34 const SkRect& rect); | 34 const SkRect& rect); |
35 | 35 |
36 void stencilPath(const GrClip&, | 36 void stencilPath(const GrClip&, |
37 const GrUserStencilSettings* ss, | |
38 bool useHWAA, | 37 bool useHWAA, |
39 const SkMatrix& viewMatrix, | 38 const SkMatrix& viewMatrix, |
40 const GrPath*); | 39 const GrPath*); |
41 | 40 |
42 bool drawAndStencilRect(const GrFixedClip&, | 41 bool drawAndStencilRect(const GrFixedClip&, |
43 const GrUserStencilSettings*, | 42 const GrUserStencilSettings*, |
44 SkRegion::Op op, | 43 SkRegion::Op op, |
45 bool invert, | 44 bool invert, |
46 bool doAA, | 45 bool doAA, |
47 const SkMatrix& viewMatrix, | 46 const SkMatrix& viewMatrix, |
(...skipping 28 matching lines...) Expand all Loading... |
76 friend class GrDrawContext; // to construct/copy this type. | 75 friend class GrDrawContext; // to construct/copy this type. |
77 }; | 76 }; |
78 | 77 |
79 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext
Priv(this); } | 78 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext
Priv(this); } |
80 | 79 |
81 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { | 80 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { |
82 return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); | 81 return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); |
83 } | 82 } |
84 | 83 |
85 #endif | 84 #endif |
OLD | NEW |