OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef GrAnalyticRectBatch_DEFINED |
| 9 #define GrAnalyticRectBatch_DEFINED |
| 10 |
| 11 #include "GrColor.h" |
| 12 |
| 13 class GrDrawBatch; |
| 14 class SkMatrix; |
| 15 struct SkRect; |
| 16 |
| 17 /* |
| 18 * This class wraps helper functions that draw rects analytically. Used when a s
hader requires a |
| 19 * distance vector. |
| 20 * |
| 21 * @param color the shape's color |
| 22 * @param viewMatrix the shape's local matrix |
| 23 * @param rect the shape in source space |
| 24 * @param croppedRect the shape in device space, clipped to the device's bounds |
| 25 * @param bounds the axis aligned bounds of the shape in device space |
| 26 */ |
| 27 class GrAnalyticRectBatch { |
| 28 public: |
| 29 static GrDrawBatch* CreateAnalyticRectBatch(GrColor color, |
| 30 const SkMatrix& viewMatrix, |
| 31 const SkRect& rect, |
| 32 const SkRect& croppedRect, |
| 33 const SkRect& bounds); |
| 34 }; |
| 35 |
| 36 #endif // GrAnalyticRectBatch_DEFINED |
OLD | NEW |