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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const SkRect&); | 48 const SkRect&); |
49 | 49 |
50 bool drawAndStencilPath(const GrFixedClip&, | 50 bool drawAndStencilPath(const GrFixedClip&, |
51 const GrUserStencilSettings*, | 51 const GrUserStencilSettings*, |
52 SkRegion::Op op, | 52 SkRegion::Op op, |
53 bool invert, | 53 bool invert, |
54 bool doAA, | 54 bool doAA, |
55 const SkMatrix& viewMatrix, | 55 const SkMatrix& viewMatrix, |
56 const SkPath&); | 56 const SkPath&); |
57 | 57 |
| 58 SkBudgeted isBudgeted() const; |
| 59 |
58 void testingOnly_drawBatch(const GrPaint&, | 60 void testingOnly_drawBatch(const GrPaint&, |
59 GrDrawBatch* batch, | 61 GrDrawBatch* batch, |
60 const GrUserStencilSettings* = nullptr, | 62 const GrUserStencilSettings* = nullptr, |
61 bool snapToCenters = false); | 63 bool snapToCenters = false); |
62 | 64 |
63 private: | 65 private: |
64 explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawCo
ntext) {} | 66 explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawCo
ntext) {} |
65 GrDrawContextPriv(const GrRenderTargetPriv&) {} // unimpl | 67 GrDrawContextPriv(const GrRenderTargetPriv&) {} // unimpl |
66 GrDrawContextPriv& operator=(const GrRenderTargetPriv&); // unimpl | 68 GrDrawContextPriv& operator=(const GrRenderTargetPriv&); // unimpl |
67 | 69 |
68 // No taking addresses of this type. | 70 // No taking addresses of this type. |
69 const GrDrawContextPriv* operator&() const; | 71 const GrDrawContextPriv* operator&() const; |
70 GrDrawContextPriv* operator&(); | 72 GrDrawContextPriv* operator&(); |
71 | 73 |
72 GrDrawContext* fDrawContext; | 74 GrDrawContext* fDrawContext; |
73 | 75 |
74 friend class GrDrawContext; // to construct/copy this type. | 76 friend class GrDrawContext; // to construct/copy this type. |
75 }; | 77 }; |
76 | 78 |
77 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext
Priv(this); } | 79 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext
Priv(this); } |
78 | 80 |
79 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { | 81 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { |
80 return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); | 82 return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); |
81 } | 83 } |
82 | 84 |
83 #endif | 85 #endif |
OLD | NEW |