Home
last modified time | relevance | path

Searched refs:GrShape (Results 1 – 25 of 65) sorted by relevance

123

/external/skqp/src/gpu/
DGrShape.h36 class GrShape {
42 GrShape() { this->initType(Type::kEmpty); } in GrShape() function
44 explicit GrShape(const SkPath& path) : GrShape(path, GrStyle::SimpleFill()) {} in GrShape() function
46 explicit GrShape(const SkRRect& rrect) : GrShape(rrect, GrStyle::SimpleFill()) {} in GrShape() function
48 explicit GrShape(const SkRect& rect) : GrShape(rect, GrStyle::SimpleFill()) {} in GrShape() function
50 GrShape(const SkPath& path, const GrStyle& style) : fStyle(style) { in GrShape() function
55 GrShape(const SkRRect& rrect, const GrStyle& style) : fStyle(style) { in GrShape() function
64 GrShape(const SkRRect& rrect, SkPath::Direction dir, unsigned start, bool inverted, in GrShape() function
84 GrShape(const SkRect& rect, const GrStyle& style) : fStyle(style) { in GrShape() function
93 GrShape(const SkPath& path, const SkPaint& paint) : fStyle(paint) { in GrShape() function
[all …]
DGrShape.cpp12 GrShape& GrShape::operator=(const GrShape& that) { in operator =()
44 static bool flip_inversion(bool originalIsInverted, GrShape::FillInversion inversion) { in flip_inversion()
46 case GrShape::FillInversion::kPreserve: in flip_inversion()
48 case GrShape::FillInversion::kFlip: in flip_inversion()
50 case GrShape::FillInversion::kForceInverted: in flip_inversion()
52 case GrShape::FillInversion::kForceNoninverted: in flip_inversion()
58 static bool is_inverted(bool originalIsInverted, GrShape::FillInversion inversion) { in is_inverted()
60 case GrShape::FillInversion::kPreserve: in is_inverted()
62 case GrShape::FillInversion::kFlip: in is_inverted()
64 case GrShape::FillInversion::kForceInverted: in is_inverted()
[all …]
DGrPathRenderer.h22 class GrShape; variable
67 StencilSupport getStencilSupport(const GrShape& shape) const;
81 const GrShape* fShape;
116 const GrShape* fShape;
149 const GrShape* fShape;
182 virtual StencilSupport onGetStencilSupport(const GrShape&) const { in onGetStencilSupport() argument
DGrBlurUtils.h18 class GrShape; variable
40 const GrShape&);
49 const GrShape&,
DGrBlurUtils.cpp65 const GrShape& shape, in sw_draw_with_mask_filter()
176 const GrShape& shape, in create_mask_GPU()
206 static bool get_unclipped_shape_dev_bounds(const GrShape& shape, const SkMatrix& matrix, in get_unclipped_shape_dev_bounds()
235 const GrShape& shape, in get_shape_and_clip_bounds()
258 const GrShape& origShape) { in draw_shape_with_mask_filter()
261 const GrShape* shape = &origShape; in draw_shape_with_mask_filter()
262 SkTLazy<GrShape> tmpShape; in draw_shape_with_mask_filter()
436 const GrShape& shape, in drawShapeWithMaskFilter()
449 const GrShape& shape) { in drawShapeWithMaskFilter()
DGrPath.h17 class GrShape; variable
35 static void ComputeKey(const GrShape&, GrUniqueKey* key, bool* outIsVolatile);
DGrSWMaskHelper.h19 class GrShape; variable
51 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
DGrSoftwarePathRenderer.h29 const GrShape& shape,
63 StencilSupport onGetStencilSupport(const GrShape&) const override { in onGetStencilSupport() argument
DGrSoftwarePathRenderer.cpp41 static bool get_unclipped_shape_dev_bounds(const GrShape& shape, const SkMatrix& matrix, in get_unclipped_shape_dev_bounds()
70 const GrShape& shape, in GetShapeAndClipBounds()
202 SoftwarePathData(const SkIRect& maskBounds, const SkMatrix& viewMatrix, const GrShape& shape, in SoftwarePathData()
211 const GrShape& getShape() const { return fShape; } in getShape()
217 GrShape fShape;
/external/skia/src/gpu/geometry/
DGrShape.h49 class GrShape {
64 GrShape() {} in GrShape() function
65 explicit GrShape(const SkPoint& point) { this->setPoint(point); } in GrShape() function
66 explicit GrShape(const SkRect& rect) { this->setRect(rect); } in GrShape() function
67 explicit GrShape(const SkRRect& rrect) { this->setRRect(rrect); } in GrShape() function
68 explicit GrShape(const SkPath& path) { this->setPath(path); } in GrShape() function
69 explicit GrShape(const GrArc& arc) { this->setArc(arc); } in GrShape() function
70 explicit GrShape(const GrLineSegment& line){ this->setLine(line); } in GrShape() function
72 GrShape(const GrShape& shape) { *this = shape; } in GrShape() function
74 ~GrShape() { this->reset(); } in ~GrShape()
[all …]
DGrShape.cpp13 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::simplifyLine(const SkPoint& p1, const SkPoint& p2, unsigned flags) { in simplifyLine()
227 void GrShape::simplifyPoint(const SkPoint& point, unsigned flags) { in simplifyPoint()
239 bool GrShape::simplify(unsigned flags) { in simplify()
284 bool GrShape::conservativeContains(const SkRect& rect) const { in conservativeContains()
[all …]
DGrStyledShape.cpp140 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()
197 case GrShape::Type::kPath: { in writeUnstyledKey()
210 case GrShape::Type::kPoint: in writeUnstyledKey()
[all …]
/external/skqp/tests/
DGrShapeTest.cpp22 uint32_t GrShape::testingOnly_getOriginalGenerationID() const { in testingOnly_getOriginalGenerationID()
29 bool GrShape::testingOnly_isPath() const { in testingOnly_isPath()
33 bool GrShape::testingOnly_isNonVolatilePath() const { in testingOnly_isNonVolatilePath()
39 static bool make_key(Key* key, const GrShape& shape) { in make_key()
98 static bool can_interchange_winding_and_even_odd_fill(const GrShape& shape) { in can_interchange_winding_and_even_odd_fill()
110 static void check_equivalence(skiatest::Reporter* r, const GrShape& a, const GrShape& b, in check_equivalence()
141 const GrShape* s1 = pathA.isInverseFillType() ? &a : &b; in check_equivalence()
142 const GrShape* s2 = pathA.isInverseFillType() ? &b : &a; in check_equivalence()
229 static void check_original_path_ids(skiatest::Reporter* r, const GrShape& base, const GrShape& pe, in check_original_path_ids()
230 const GrShape& peStroke, const GrShape& full) { in check_original_path_ids()
[all …]
DGpuDrawPathTest.cpp114 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile);
117 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &key2, &isVolatile);
124 GrPath::ComputeKey(GrShape(path1, style), &key1, &isVolatile);
132 GrPath::ComputeKey(GrShape(path2, GrStyle::SimpleFill()), &tempKey, &isVolatile);
147 GrPath::ComputeKey(GrShape(path3, style), &key3, &isVolatile);
150 GrPath::ComputeKey(GrShape(path4, style), &key4, &isVolatile);
158 GrPath::ComputeKey(GrShape(path3, style), &key1, &isVolatile);
/external/skqp/src/gpu/ccpr/
DGrCCDrawPathsOp.h32 const SkMatrix&, const GrShape&, GrPaint&&);
72 const SkMatrix&, const GrShape&,
77 GrCCDrawPathsOp(const SkMatrix&, const GrShape&, float strokeDevWidth,
87 SingleDraw(const SkMatrix&, const GrShape&, float strokeDevWidth,
102 GrShape fShape;
DGrCCDrawPathsOp.cpp29 GrContext* context, const SkIRect& clipIBounds, const SkMatrix& m, const GrShape& shape, in Make()
52 GrShape croppedDevShape; in Make()
55 croppedDevShape = GrShape(croppedDevPath); in Make()
63 croppedDevShape = GrShape(croppedDevPath, GrStyle(devStroke, nullptr)); in Make()
78 GrContext* context, const SkIRect& clipIBounds, const SkMatrix& m, const GrShape& shape, in InternalMake()
99 GrCCDrawPathsOp::GrCCDrawPathsOp(const SkMatrix& m, const GrShape& shape, float strokeDevWidth, in GrCCDrawPathsOp()
121 GrCCDrawPathsOp::SingleDraw::SingleDraw(const SkMatrix& m, const GrShape& shape, in SingleDraw()
173 fShape = GrShape(path, GrStyle(hairlineStroke, nullptr)); in finalize()
DGrCCPathCache.h19 class GrShape; variable
108 OnFlushEntryRef find(GrOnFlushResourceProvider*, const GrShape&,
136 HashNode(GrCCPathCache*, sk_sp<Key>, const MaskTransform&, const GrShape&);
341 const MaskTransform& m, const GrShape& shape) in HashNode()
/external/skia/src/gpu/
DGrClipStack.h34 GrShape fShape;
61 this->clip({ctm, GrShape(rect), aa, op}); in clipRect()
64 this->clip({ctm, GrShape(rrect), aa, op}); in clipRRect()
67 this->clip({ctm, GrShape(path), aa, op}); in clipPath()
103 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op);
115 const GrShape& shape() const { return fShape; } in shape()
DGrStencilMaskHelper.h16 class GrShape; variable
56 bool drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op, GrAA);
DGrSWMaskHelper.h20 class GrShape; variable
61 void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
/external/skqp/src/gpu/ops/
DGrDefaultPathRenderer.h24 StencilSupport onGetStencilSupport(const GrShape&) const override;
38 const GrShape&,
DGrSmallPathRenderer.h55 const GrShape&,
67 StencilSupport onGetStencilSupport(const GrShape&) const override { in onGetStencilSupport() argument
DGrSmallPathRenderer.cpp55 ShapeDataKey(const GrShape& shape, uint32_t dim) { this->set(shape, dim); } in ShapeDataKey()
56 ShapeDataKey(const GrShape& shape, const SkMatrix& ctm) { this->set(shape, ctm); } in ShapeDataKey()
65 void set(const GrShape& shape, uint32_t dim) { in set()
77 void set(const GrShape& shape, const SkMatrix& ctm) { in set()
234 const GrShape& shape, in Make()
246 SmallPathOp(Helper::MakeArgs helperArgs, const SkPMColor4f& color, const GrShape& shape, in SmallPathOp()
523 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addDFPathToAtlas()
650 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addBMPathToAtlas()
852 GrShape fShape;
945 const GrShape& shape, in createOp_TestingOnly()
[all …]
/external/skqp/src/core/
DSkMaskFilterBase.h27 class GrShape; variable
101 virtual bool canFilterMaskGPU(const GrShape&,
116 const GrShape& shape) const;
/external/skqp/src/gpu/text/
DGrTextTarget.h17 class GrShape; variable
35 const SkMatrix& viewMatrix, const GrShape&) = 0;

123