OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, | 130 * @param localMatrix Optional local matrix. The local coordinates are speci
fied by localRect, |
131 * or if it is nullptr by rect. This matrix applies to th
e coordinate implied by | 131 * or if it is nullptr by rect. This matrix applies to th
e coordinate implied by |
132 * that rectangle before it is input to GrCoordTransforms
that read local | 132 * that rectangle before it is input to GrCoordTransforms
that read local |
133 * coordinates | 133 * coordinates |
134 */ | 134 */ |
135 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, | 135 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, |
136 GrColor color, | 136 GrColor color, |
137 const SkMatrix& viewMatrix, | 137 const SkMatrix& viewMatrix, |
138 const SkRect& rect); | 138 const SkRect& rect); |
139 | 139 |
140 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, | |
141 GrColor color, | |
142 const SkMatrix& viewMatrix, | |
143 const SkRect& rect, | |
144 const SkMatrix& localMatrix); | |
145 | |
146 void drawNonAARect(const GrPipelineBuilder& pipelineBuilder, | |
147 GrColor color, | |
148 const SkMatrix& viewMatrix, | |
149 const SkRect& rect, | |
150 const SkRect& localRect); | |
151 | |
152 void drawNonAARect(const GrPipelineBuilder& ds, | 140 void drawNonAARect(const GrPipelineBuilder& ds, |
153 GrColor color, | 141 GrColor color, |
154 const SkMatrix& viewM, | 142 const SkMatrix& viewM, |
155 const SkIRect& irect) { | 143 const SkIRect& irect) { |
156 SkRect rect = SkRect::Make(irect); | 144 SkRect rect = SkRect::Make(irect); |
157 this->drawNonAARect(ds, color, viewM, rect); | 145 this->drawNonAARect(ds, color, viewM, rect); |
158 } | 146 } |
159 | 147 |
160 void drawAARect(const GrPipelineBuilder& pipelineBuilder, | 148 void drawAARect(const GrPipelineBuilder& pipelineBuilder, |
161 GrColor color, | 149 GrColor color, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 SkTDArray<GrDrawTarget*> fDependencies; | 286 SkTDArray<GrDrawTarget*> fDependencies; |
299 GrRenderTarget* fRenderTarget; | 287 GrRenderTarget* fRenderTarget; |
300 | 288 |
301 bool fDrawBatchBounds; | 289 bool fDrawBatchBounds; |
302 int fMaxBatchLookback; | 290 int fMaxBatchLookback; |
303 | 291 |
304 typedef SkRefCnt INHERITED; | 292 typedef SkRefCnt INHERITED; |
305 }; | 293 }; |
306 | 294 |
307 #endif | 295 #endif |
OLD | NEW |