| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef GrPathRenderer_DEFINED | 10 #ifndef GrPathRenderer_DEFINED |
| 11 #define GrPathRenderer_DEFINED | 11 #define GrPathRenderer_DEFINED |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 kReplace_StencilOp, | 166 kReplace_StencilOp, |
| 167 kAlways_StencilFunc, | 167 kAlways_StencilFunc, |
| 168 0xffff, | 168 0xffff, |
| 169 0xffff, | 169 0xffff, |
| 170 0xffff); | 170 0xffff); |
| 171 drawState->setStencil(kIncrementStencil); | 171 drawState->setStencil(kIncrementStencil); |
| 172 drawState->enableState(GrDrawState::kNoColorWrites_StateBit); | 172 drawState->enableState(GrDrawState::kNoColorWrites_StateBit); |
| 173 this->drawPath(path, stroke, target, false); | 173 this->drawPath(path, stroke, target, false); |
| 174 } | 174 } |
| 175 | 175 |
| 176 // Helper for getting the device bounds of a path. Inverse filled paths will
have bounds set |
| 177 // by devSize. Non-inverse path bounds will not necessarily be clipped to de
vSize. |
| 178 static void GetPathDevBounds(const SkPath& path, |
| 179 int devW, |
| 180 int devH, |
| 181 const SkMatrix& matrix, |
| 182 SkRect* bounds); |
| 183 |
| 184 // Helper version that gets the dev width and height from a GrSurface. |
| 185 static void GetPathDevBounds(const SkPath& path, |
| 186 const GrSurface* device, |
| 187 const SkMatrix& matrix, |
| 188 SkRect* bounds) { |
| 189 GetPathDevBounds(path, device->width(), device->height(), matrix, bounds
); |
| 190 } |
| 191 |
| 176 private: | 192 private: |
| 177 | 193 |
| 178 typedef GrRefCnt INHERITED; | 194 typedef GrRefCnt INHERITED; |
| 179 }; | 195 }; |
| 180 | 196 |
| 181 #endif | 197 #endif |
| OLD | NEW |