Home
last modified time | relevance | path

Searched refs:CanvasOpType (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/hwui/canvas/
DCanvasOps.h48 template <CanvasOpType T>
69 struct CanvasOp<CanvasOpType::Save> {
75 struct CanvasOp<CanvasOpType::SaveLayer> {
82 struct CanvasOp<CanvasOpType::SaveBehind> {
89 struct CanvasOp<CanvasOpType::Restore> {
95 struct CanvasOp<CanvasOpType::BeginZ> {
98 struct CanvasOp<CanvasOpType::EndZ> {};
105 struct CanvasOp<CanvasOpType::ClipRect> {
113 struct CanvasOp<CanvasOpType::ClipPath> {
125 struct CanvasOp<CanvasOpType::DrawRoundRectProperty> {
[all …]
DCanvasOpBuffer.h33 template <CanvasOpType T>
36 template <CanvasOpType T>
41 OpBufferItemHeader<CanvasOpType> header;
51 CanvasOpType type() const { return header.type; } in type()
62 extern template class OpBuffer<CanvasOpType, CanvasOpContainer>;
63 class CanvasOpBuffer final : private OpBuffer<CanvasOpType, CanvasOpContainer> {
65 using SUPER = OpBuffer<CanvasOpType, CanvasOpContainer>;
73 template <CanvasOpType T>
78 template <CanvasOpType T>
83 if constexpr (T == CanvasOpType::DrawRenderNode) { in push_container()
DCanvasOpTypes.h23 enum class CanvasOpType : int8_t { enum
71 static constexpr bool IsDrawOp(CanvasOpType t) { in IsDrawOp()
72 return CanvasOpType::DRAW_OP_BEGIN <= t && t <= CanvasOpType::DRAW_OP_END; in IsDrawOp()
DCanvasFrontend.h198 submit<CanvasOpType::Save>({});
204 submit<CanvasOpType::Restore>({}); in restore()
208 template <CanvasOpType T>
211 static_assert(T != CanvasOpType::Save, "Must use CanvasFrontend::save() call instead"); in draw()
212 … static_assert(T != CanvasOpType::Restore, "Must use CanvasFrontend::restore() call instead"); in draw()
214 if constexpr (T == CanvasOpType::SaveLayer) { in draw()
217 if constexpr (T == CanvasOpType::SaveBehind) { in draw()
222 if constexpr (T == CanvasOpType::ClipRect) { in draw()
225 if constexpr (T == CanvasOpType::ClipPath) { in draw()
252 template <CanvasOpType T>
DCanvasOpBuffer.cpp23 template class OpBuffer<CanvasOpType, CanvasOpContainer>;
28 for (auto& iter : filter<CanvasOpType::DrawRenderNode>()) { in updateChildren()
DCanvasOpRasterizer.cpp35 source.for_each([&]<CanvasOpType T>(const CanvasOpContainer<T> * op) { in rasterizeCanvasBuffer()
DCanvasOpRasterizer.h51 template <CanvasOpType T>
/frameworks/base/libs/hwui/tests/unit/
DCanvasFrontendTests.cpp38 template <CanvasOpType T>
43 int operator[](CanvasOpType op) const { in operator []()
48 std::array<int, static_cast<size_t>(CanvasOpType::COUNT)> mOpCounts;
74 EXPECT_EQ(1, receiver[CanvasOpType::Save]); in TEST()
75 EXPECT_EQ(1, receiver[CanvasOpType::Restore]); in TEST()
130 return CanvasOp<CanvasOpType::DrawRect>{ in TEST()
161 if (op->type() == CanvasOpType::DrawRect) { in TEST()
DCanvasOpTests.cpp47 using Op = CanvasOpType;
51 template <CanvasOpType T>
56 int operator[](CanvasOpType op) const { in operator []()
61 std::array<int, static_cast<size_t>(CanvasOpType::COUNT)> mOpCounts;
/frameworks/base/libs/hwui/tests/microbench/
DCanvasOpBench.cpp75 canvas.draw(CanvasOp<CanvasOpType::DrawRect> { in BM_CanvasOpBuffer_record_simpleBitmapView()
84 canvas.draw(CanvasOp<CanvasOpType::DrawImage> { in BM_CanvasOpBuffer_record_simpleBitmapView()