/third_party/skia/src/gpu/geometry/ |
H A D | GrShape.h | 31 * GrShape is a convenience class to represent the many different specialized geometries that 41 * Regarding GrShape's empty shape: 42 * - GrShape uses empty to refer to the absence of any geometric data 43 * - SkRect::isEmpty() returns true if the rect is not sorted, even if it has area. GrShape will not 44 * simplify these shapes to an empty GrShape. Rects with actual 0 width and height will simplify 46 * - SkRRect::isEmpty() is true when the bounds have 0 width or height, so GrShape will simplify it 49 class GrShape { class 51 // The current set of types GrShape can represent directly 64 GrShape() {} in GrShape() function in GrShape 65 explicit GrShape(cons in GrShape() function in GrShape 66 explicit GrShape(const SkRect& rect) { this->setRect(rect); } GrShape() function in GrShape 67 explicit GrShape(const SkRRect& rrect) { this->setRRect(rrect); } GrShape() function in GrShape 68 explicit GrShape(const SkPath& path) { this->setPath(path); } GrShape() function in GrShape 69 explicit GrShape(const GrArc& arc) { this->setArc(arc); } GrShape() function in GrShape 70 explicit GrShape(const GrLineSegment& line){ this->setLine(line); } GrShape() function in GrShape 72 GrShape(const GrShape& shape) { *this = shape; } GrShape() function in GrShape [all...] |
H A D | GrShape.cpp | 8 #include "src/gpu/geometry/GrShape.h" 13 GrShape& GrShape::operator=(const GrShape& shape) { in operator =() 45 uint32_t GrShape::stateKey() const { in stateKey() 55 bool GrShape::simplifyPath(unsigned flags) { in simplifyPath() 98 bool GrShape::simplifyArc(unsigned flags) { in simplifyArc() 151 void GrShape::simplifyRRect(const SkRRect& rrect, SkPathDirection dir, unsigned start, in simplifyRRect() 168 void GrShape::simplifyRect(const SkRect& rect, SkPathDirection dir, unsigned start, in simplifyRect() 202 void GrShape [all...] |
H A D | GrStyledShape.cpp | 138 int count = 1; // Every key has the state flags from the GrShape in unstyledKeySize() 140 case GrShape::Type::kPoint: in unstyledKeySize() 144 case GrShape::Type::kRect: in unstyledKeySize() 148 case GrShape::Type::kRRect: in unstyledKeySize() 152 case GrShape::Type::kArc: in unstyledKeySize() 156 case GrShape::Type::kLine: in unstyledKeySize() 160 case GrShape::Type::kPath: { in unstyledKeySize() 189 (fShape.dir() == GrShape::kDefaultDir && in writeUnstyledKey() 190 fShape.startIndex() == GrShape::kDefaultStart)); in writeUnstyledKey() 192 // Every key starts with the state from the GrShape (thi in writeUnstyledKey() [all...] |
H A D | GrStyledShape.h | 17 #include "src/gpu/geometry/GrShape.h" 278 * Similar to GrShape::simplify but also takes into account style and stroking, possibly 303 GrShape fShape;
|
/third_party/skia/src/gpu/v1/ |
H A D | ClipStack.h | 18 #include "src/gpu/geometry/GrShape.h" 37 GrShape fShape; 64 this->clip({ctm, GrShape(rect), aa, op}); in clipRect() 67 this->clip({ctm, GrShape(rrect), aa, op}); in clipRRect() 70 this->clip({ctm, GrShape(path), aa, op}); in clipPath() 105 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op); 117 const GrShape& shape() const { return fShape; } in shape()
|
H A D | StencilMaskHelper.h | 13 class GrShape; 54 bool drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op, GrAA);
|
H A D | ClipStack.cpp | 120 bool shape_contains_rect(const GrShape& a, const SkMatrix& aToDevice, const SkMatrix& deviceToA, in shape_contains_rect() 299 GrShape inverted(e.fShape); in draw_to_sw_mask() 438 ClipStack::RawElement::RawElement(const SkMatrix& localToDevice, const GrShape& shape, in RawElement() 715 case GrShape::Type::kEmpty: in clipType() 718 case GrShape::Type::kRect: in clipType() 722 case GrShape::Type::kRRect: in clipType() 726 case GrShape::Type::kArc: in clipType() 727 case GrShape::Type::kLine: in clipType() 728 case GrShape::Type::kPoint: in clipType() 733 case GrShape in clipType() [all...] |
H A D | StencilMaskHelper.cpp | 15 #include "src/gpu/geometry/GrShape.h" 472 bool StencilMaskHelper::drawShape(const GrShape& shape, in drawShape()
|
/third_party/skia/src/gpu/ |
H A D | GrSWMaskHelper.h | 20 class GrShape; 61 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
|
H A D | GrSWMaskHelper.cpp | 93 void GrSWMaskHelper::drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op op, in drawShape()
|
/third_party/skia/src/gpu/ops/ |
H A D | GrDrawOp.h | 19 class GrShape; 60 const GrShape&, in clipToShape() 57 clipToShape(skgpu::v1::SurfaceDrawContext*, SkClipOp, const SkMatrix& , const GrShape&, GrAA) clipToShape() argument
|
H A D | FillRRectOp.cpp | 22 #include "src/gpu/geometry/GrShape.h" 55 const GrShape&, 213 const GrShape& shape, in clipToShape()
|
/third_party/skia/tests/ |
H A D | GrClipStackTest.cpp | 120 fElements->push_back({GrShape(rect), m, op, aa}); in rect() 131 fElements->push_back({GrShape(rrect), m, op, aa}); in rrect() 142 fElements->push_back({GrShape(path), m, op, aa}); in path() 285 case GrShape::Type::kRect: in compare_elements() 287 case GrShape::Type::kRRect: in compare_elements() 289 case GrShape::Type::kPath: in compare_elements() 321 case GrShape::Type::kRect: in run() 324 case GrShape::Type::kRRect: in run() 327 case GrShape::Type::kPath: in run()
|
H A D | GrStyledShapeTest.cpp | 2367 GrShape inverseRRect(path); in DEF_TEST() 2368 GrShape rrect(inverseRRect); in DEF_TEST()
|