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

/external/skia/src/gpu/instanced/
H A DInstancedRenderingTypes.h46 enum class ShapeType : uint8_t { class in namespace:gr_instanced
53 constexpr int kNumShapeTypes = 1 + (int)ShapeType::kComplexRRect;
55 inline static ShapeType GetRRectShapeType(const SkRRect& rrect) {
58 return static_cast<ShapeType>(rrect.getType() - 1);
60 GR_STATIC_ASSERT((int)ShapeType::kRect == SkRRect::kRect_Type - 1);
61 GR_STATIC_ASSERT((int)ShapeType::kOval == SkRRect::kOval_Type - 1);
62 GR_STATIC_ASSERT((int)ShapeType::kSimpleRRect == SkRRect::kSimple_Type - 1);
63 GR_STATIC_ASSERT((int)ShapeType::kNinePatch == SkRRect::kNinePatch_Type - 1);
64 GR_STATIC_ASSERT((int)ShapeType::kComplexRRect == SkRRect::kComplex_Type - 1);
69 kRect_ShapeFlag = (1 << (int)ShapeType
[all...]
H A DInstancedRendering.cpp28 return this->recordShape(ShapeType::kRect, rect, viewMatrix, std::move(paint), rect, aa, info);
36 return this->recordShape(ShapeType::kRect, rect, viewMatrix, std::move(paint), localRect, aa,
48 if (std::unique_ptr<Op> op = this->recordShape(ShapeType::kRect, rect, viewMatrix,
65 return this->recordShape(ShapeType::kOval, oval, viewMatrix, std::move(paint), oval, aa, info);
96 ShapeType innerShapeType = GetRRectShapeType(inner);
107 ShapeType type, const SkRect& bounds, const SkMatrix& viewMatrix, GrPaint&& paint,
H A DInstancedRendering.h192 std::unique_ptr<Op> SK_WARN_UNUSED_RESULT recordShape(ShapeType, const SkRect& bounds,
H A DInstanceProcessor.cpp361 v->defineConstant("OVAL_SHAPE_TYPE", (int)ShapeType::kOval);
364 v->defineConstant("SIMPLE_R_RECT_SHAPE_TYPE", (int)ShapeType::kSimpleRRect);
367 v->defineConstant("NINE_PATCH_SHAPE_TYPE", (int)ShapeType::kNinePatch);
/external/skia/gm/
H A Ddstreadshuffle.cpp25 enum ShapeType { enum in class:skiagm::DstReadShuffle
43 void drawShape(SkCanvas* canvas, SkPaint* paint, ShapeType type) {
127 ShapeType shapeType = static_cast<ShapeType>(i);

Completed in 112 milliseconds