Searched refs:CanvasOpType (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/libs/hwui/canvas/ |
D | CanvasOps.h | 48 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 …]
|
D | CanvasOpBuffer.h | 33 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()
|
D | CanvasOpTypes.h | 23 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()
|
D | CanvasFrontend.h | 198 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>
|
D | CanvasOpBuffer.cpp | 23 template class OpBuffer<CanvasOpType, CanvasOpContainer>; 28 for (auto& iter : filter<CanvasOpType::DrawRenderNode>()) { in updateChildren()
|
D | CanvasOpRasterizer.cpp | 35 source.for_each([&]<CanvasOpType T>(const CanvasOpContainer<T> * op) { in rasterizeCanvasBuffer()
|
D | CanvasOpRasterizer.h | 51 template <CanvasOpType T>
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CanvasFrontendTests.cpp | 38 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()
|
D | CanvasOpTests.cpp | 47 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/ |
D | CanvasOpBench.cpp | 75 canvas.draw(CanvasOp<CanvasOpType::DrawRect> { in BM_CanvasOpBuffer_record_simpleBitmapView() 84 canvas.draw(CanvasOp<CanvasOpType::DrawImage> { in BM_CanvasOpBuffer_record_simpleBitmapView()
|