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