Home
last modified time | relevance | path

Searched refs:ShapeType (Results 1 – 5 of 5) sorted by relevance

/external/skia/src/gpu/instanced/
DInstancedRenderingTypes.h46 enum class ShapeType : uint8_t { enum
53 constexpr int kNumShapeTypes = 1 + (int)ShapeType::kComplexRRect;
55 inline static ShapeType GetRRectShapeType(const SkRRect& rrect) { in GetRRectShapeType()
58 return static_cast<ShapeType>(rrect.getType() - 1); in GetRRectShapeType()
60 GR_STATIC_ASSERT((int)ShapeType::kRect == SkRRect::kRect_Type - 1); in GetRRectShapeType()
61 GR_STATIC_ASSERT((int)ShapeType::kOval == SkRRect::kOval_Type - 1); in GetRRectShapeType()
62 GR_STATIC_ASSERT((int)ShapeType::kSimpleRRect == SkRRect::kSimple_Type - 1); in GetRRectShapeType()
63 GR_STATIC_ASSERT((int)ShapeType::kNinePatch == SkRRect::kNinePatch_Type - 1); in GetRRectShapeType()
64 GR_STATIC_ASSERT((int)ShapeType::kComplexRRect == SkRRect::kComplex_Type - 1); in GetRRectShapeType()
69 kRect_ShapeFlag = (1 << (int)ShapeType::kRect),
[all …]
DInstancedOp.cpp264 return this->recordShape(ShapeType::kRect, rect, viewMatrix, std::move(paint), rect, aa, info); in recordRect()
272 return this->recordShape(ShapeType::kRect, rect, viewMatrix, std::move(paint), localRect, aa, in recordRect()
284 if (std::unique_ptr<InstancedOp> op = this->recordShape(ShapeType::kRect, rect, viewMatrix, in recordRect()
301 return this->recordShape(ShapeType::kOval, oval, viewMatrix, std::move(paint), oval, aa, info); in recordOval()
332 ShapeType innerShapeType = GetRRectShapeType(inner); in recordDRRect()
343 ShapeType type, const SkRect& bounds, const SkMatrix& viewMatrix, GrPaint&& paint, in recordShape()
DInstancedOp.h151 ShapeType, const SkRect& bounds,
DInstanceProcessor.cpp360 v->defineConstant("OVAL_SHAPE_TYPE", (int)ShapeType::kOval); in onEmitCode()
363 v->defineConstant("SIMPLE_R_RECT_SHAPE_TYPE", (int)ShapeType::kSimpleRRect); in onEmitCode()
366 v->defineConstant("NINE_PATCH_SHAPE_TYPE", (int)ShapeType::kNinePatch); in onEmitCode()
/external/skia/gm/
Ddstreadshuffle.cpp25 enum ShapeType { enum in skiagm::DstReadShuffle
43 void drawShape(SkCanvas* canvas, SkPaint* paint, ShapeType type) { in drawShape()
127 ShapeType shapeType = static_cast<ShapeType>(i); in onDraw()