Home
last modified time | relevance | path

Searched refs:SkRecords (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/src/core/
DSkRecorder.cpp155 this->append<SkRecords::DrawPaint>(paint); in onDrawPaint()
159 this->append<SkRecords::DrawBehind>(paint); in onDrawBehind()
166 this->append<SkRecords::DrawPoints>(paint, mode, SkToUInt(count), this->copy(pts, count)); in onDrawPoints()
171 this->append<SkRecords::DrawRect>(paint, rect); in onDrawRect()
175 this->append<SkRecords::DrawRegion>(paint, region); in onDrawRegion()
179 this->append<SkRecords::DrawOval>(paint, oval); in onDrawOval()
184 this->append<SkRecords::DrawArc>(paint, oval, startAngle, sweepAngle, useCenter); in onDrawArc()
188 this->append<SkRecords::DrawRRect>(paint, rrect); in onDrawRRect()
192 this->append<SkRecords::DrawDRRect>(paint, outer, inner); in onDrawDRRect()
200 …this->append<SkRecords::DrawDrawable>(this->copy(matrix), drawable->getBounds(), fDrawableList->co… in onDrawDrawable()
[all …]
DSkRecord.h41 auto visit(int i, F&& f) const -> decltype(f(SkRecords::NoOp())) {
50 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
131 SkRecords::Type fType;
143 SkRecords::Type type() const { return fType; } in type()
148 auto visit(F&& f) const -> decltype(f(SkRecords::NoOp())) {
149 #define CASE(T) case SkRecords::T##_Type: return f(*(const SkRecords::T*)this->ptr());
153 static const SkRecords::NoOp noop{};
159 auto mutate(F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
160 #define CASE(T) case SkRecords::T##_Type: return f((SkRecords::T*)this->ptr());
164 static const SkRecords::NoOp noop{};
[all …]
DSkPictureCommon.h24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr()
35 void operator()(const SkRecords::DrawPoints& op) { in operator()
48 void operator()(const SkRecords::DrawPath& op) { in operator()
65 void operator()(const SkRecords::ClipPath& op) { in operator()
72 void operator()(const SkRecords::SaveLayer& op) { in operator()
77 std::enable_if_t<T::kTags & SkRecords::kHasPaint_Tag, void> operator()(const T& op) { in operator()
82 std::enable_if_t<!(T::kTags & SkRecords::kHasPaint_Tag), void>
DSkMiniRecorder.h52 Max<sizeof(SkRecords::DrawPath),
53 Max<sizeof(SkRecords::DrawRect),
54 sizeof(SkRecords::DrawTextBlob)>::val>::val;
DSkMiniRecorder.cpp19 using namespace SkRecords;
55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); in playback()
129 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \ in flushAndReset()
DSkRecords.cpp11 namespace SkRecords { namespace
DSkRecordPattern.h14 namespace SkRecords {
72 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } in AsPtr()
/external/skqp/src/core/
DSkRecorder.cpp139 this->append<SkRecords::DrawPaint>(paint); in onDrawPaint()
146 this->append<SkRecords::DrawPoints>(paint, mode, SkToUInt(count), this->copy(pts, count)); in onDrawPoints()
151 this->append<SkRecords::DrawRect>(paint, rect); in onDrawRect()
156 this->append<SkRecords::DrawEdgeAARect>(rect, aa, color, mode); in onDrawEdgeAARect()
160 this->append<SkRecords::DrawRegion>(paint, region); in onDrawRegion()
164 this->append<SkRecords::DrawOval>(paint, oval); in onDrawOval()
169 this->append<SkRecords::DrawArc>(paint, oval, startAngle, sweepAngle, useCenter); in onDrawArc()
173 this->append<SkRecords::DrawRRect>(paint, rrect); in onDrawRRect()
177 this->append<SkRecords::DrawDRRect>(paint, outer, inner); in onDrawDRRect()
186 …this->append<SkRecords::DrawDrawable>(this->copy(matrix), drawable->getBounds(), fDrawableList->co… in onDrawDrawable()
[all …]
DSkRecord.h41 auto visit(int i, F&& f) const -> decltype(f(SkRecords::NoOp())) {
50 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
92 T* replace(int i, const SkRecords::Adopted<Existing>& proofOfAdoption) { in replace()
144 SkRecords::Type fType;
156 SkRecords::Type type() const { return fType; } in type()
161 auto visit(F&& f) const -> decltype(f(SkRecords::NoOp())) {
162 #define CASE(T) case SkRecords::T##_Type: return f(*(const SkRecords::T*)this->ptr());
166 static const SkRecords::NoOp noop{};
172 auto mutate(F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
173 #define CASE(T) case SkRecords::T##_Type: return f((SkRecords::T*)this->ptr());
[all …]
DSkPictureCommon.h24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr()
35 void operator()(const SkRecords::DrawPoints& op) { in operator()
48 void operator()(const SkRecords::DrawPath& op) { in operator()
65 void operator()(const SkRecords::ClipPath& op) { in operator()
72 void operator()(const SkRecords::SaveLayer& op) { in operator()
77 SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, void) operator()(const T& op) { in SK_WHEN()
82 SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), void)
DSkMiniRecorder.h51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
DSkMiniRecorder.cpp19 using namespace SkRecords;
55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); in playback()
125 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \ in flushAndReset()
DSkRecords.cpp11 namespace SkRecords { namespace
/external/skqp/tests/
DRecordTest.cpp25 void operator()(const SkRecords::DrawRect& draw) { in operator ()()
44 void operator()(SkRecords::DrawRect* draw) { in operator ()()
65 APPEND(record, SkRecords::DrawRect, paint, rect); in DEF_TEST()
83 APPEND(record, SkRecords::Save); in DEF_TEST()
84 APPEND(record, SkRecords::ClipRect); in DEF_TEST()
85 APPEND(record, SkRecords::NoOp); in DEF_TEST()
86 APPEND(record, SkRecords::DrawRect); in DEF_TEST()
87 APPEND(record, SkRecords::NoOp); in DEF_TEST()
88 APPEND(record, SkRecords::NoOp); in DEF_TEST()
89 APPEND(record, SkRecords::Restore); in DEF_TEST()
[all …]
DRecordOptsTest.cpp31 record.replace<SkRecords::NoOp>(1); // NoOps should be allowed. in DEF_TEST()
35 REPORTER_ASSERT(r, 2 == count_instances_of_type<SkRecords::DrawRect>(record)); in DEF_TEST()
48 assert_type<SkRecords::NoOp>(r, record, i); in DEF_TEST()
71 assert_type<SkRecords::NoOp>(r, record, index); in DEF_TEST()
88 assert_type<SkRecords::Save> (r, record, 0); in DEF_TEST()
89 assert_type<SkRecords::SaveLayer>(r, record, 1); in DEF_TEST()
90 assert_type<SkRecords::Restore> (r, record, 2); in DEF_TEST()
91 assert_type<SkRecords::Restore> (r, record, 3); in DEF_TEST()
94 assert_type<SkRecords::SaveLayer>(r, record, 0); in DEF_TEST()
95 assert_type<SkRecords::Restore> (r, record, 1); in DEF_TEST()
[all …]
DRecordDrawTest.cpp47 assert_type<SkRecords::DrawPaint>(r, record, 0); in DEF_TEST()
48 assert_type<SkRecords::Save> (r, record, 1); in DEF_TEST()
49 assert_type<SkRecords::Concat> (r, record, 2); in DEF_TEST()
50 assert_type<SkRecords::Restore> (r, record, 3); in DEF_TEST()
72 REPORTER_ASSERT(r, 1 == count_instances_of_type<SkRecords::DrawRect>(rerecord)); in DEF_TEST()
73 REPORTER_ASSERT(r, 0 == count_instances_of_type<SkRecords::ClipRect>(rerecord)); in DEF_TEST()
86 int save_count = count_instances_of_type<SkRecords::Save>(rerecord); in DEF_TEST()
87 int restore_count = count_instances_of_type<SkRecords::Save>(rerecord); in DEF_TEST()
108 assert_type<SkRecords::SetMatrix>(r, translateRecord, 0); in DEF_TEST()
109 assert_type<SkRecords::Save> (r, translateRecord, 1); in DEF_TEST()
[all …]
DRecorderTest.cpp50 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); in DEF_TEST()
92 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImage>()); in DEF_TEST()
107 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImageRect>()); in DEF_TEST()
DRecordTestUtils.h18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {} in ReadAs()
21 SkRecords::Type type;
/external/skia/tests/
DRecordTest.cpp25 void operator()(const SkRecords::DrawRect& draw) { in operator ()()
44 void operator()(SkRecords::DrawRect* draw) { in operator ()()
65 APPEND(record, SkRecords::DrawRect, paint, rect); in DEF_TEST()
83 APPEND(record, SkRecords::Save); in DEF_TEST()
84 APPEND(record, SkRecords::ClipRect); in DEF_TEST()
85 APPEND(record, SkRecords::NoOp); in DEF_TEST()
86 APPEND(record, SkRecords::DrawRect); in DEF_TEST()
87 APPEND(record, SkRecords::NoOp); in DEF_TEST()
88 APPEND(record, SkRecords::NoOp); in DEF_TEST()
89 APPEND(record, SkRecords::Restore); in DEF_TEST()
[all …]
DRecordOptsTest.cpp30 record.replace<SkRecords::NoOp>(1); // NoOps should be allowed. in DEF_TEST()
34 REPORTER_ASSERT(r, 2 == count_instances_of_type<SkRecords::DrawRect>(record)); in DEF_TEST()
47 assert_type<SkRecords::NoOp>(r, record, i); in DEF_TEST()
70 assert_type<SkRecords::NoOp>(r, record, index); in DEF_TEST()
87 assert_type<SkRecords::Save> (r, record, 0); in DEF_TEST()
88 assert_type<SkRecords::SaveLayer>(r, record, 1); in DEF_TEST()
89 assert_type<SkRecords::Restore> (r, record, 2); in DEF_TEST()
90 assert_type<SkRecords::Restore> (r, record, 3); in DEF_TEST()
93 assert_type<SkRecords::SaveLayer>(r, record, 0); in DEF_TEST()
94 assert_type<SkRecords::Restore> (r, record, 1); in DEF_TEST()
[all …]
DRecordDrawTest.cpp47 assert_type<SkRecords::DrawPaint>(r, record, 0); in DEF_TEST()
48 assert_type<SkRecords::Save> (r, record, 1); in DEF_TEST()
49 assert_type<SkRecords::Scale> (r, record, 2); in DEF_TEST()
50 assert_type<SkRecords::Restore> (r, record, 3); in DEF_TEST()
72 REPORTER_ASSERT(r, 1 == count_instances_of_type<SkRecords::DrawRect>(rerecord)); in DEF_TEST()
73 REPORTER_ASSERT(r, 0 == count_instances_of_type<SkRecords::ClipRect>(rerecord)); in DEF_TEST()
86 int save_count = count_instances_of_type<SkRecords::Save>(rerecord); in DEF_TEST()
87 int restore_count = count_instances_of_type<SkRecords::Save>(rerecord); in DEF_TEST()
108 assert_type<SkRecords::SetM44>(r, translateRecord, 0); in DEF_TEST()
109 assert_type<SkRecords::Save> (r, translateRecord, 1); in DEF_TEST()
[all …]
DRecorderTest.cpp50 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); in DEF_TEST()
93 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImage>()); in DEF_TEST()
109 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImageRect>()); in DEF_TEST()
DRecordTestUtils.h18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {} in ReadAs()
21 SkRecords::Type type;
/external/skqp/tools/
DDumpRecord.cpp40 void operator()(const SkRecords::NoOp&) { in operator ()()
49 void print(const SkRecords::Restore& command, double ns) { in print()
54 void print(const SkRecords::Save& command, double ns) { in print()
59 void print(const SkRecords::SaveLayer& command, double ns) { in print()
64 void print(const SkRecords::DrawPicture& command, double ns) { in print()
80 void print(const SkRecords::DrawAnnotation& command, double ns) { in print()
117 #define CASE(U) case SkRecords::U##_Type: return #U; in NameOf()
124 static const char* NameOf(const SkRecords::SaveLayer&) { in NameOf()
131 SkRecords::Draw fDraw;
/external/skia/tools/
Ddump_record.cpp51 void operator()(const SkRecords::NoOp&) { in operator ()()
60 void print(const SkRecords::Restore& command, double ns) { in print()
65 void print(const SkRecords::Save& command, double ns) { in print()
70 void print(const SkRecords::SaveLayer& command, double ns) { in print()
75 void print(const SkRecords::DrawPicture& command, double ns) { in print()
90 void print(const SkRecords::DrawAnnotation& command, double ns) { in print()
126 #define CASE(U) case SkRecords::U##_Type: return #U; in NameOf()
133 static const char* NameOf(const SkRecords::SaveLayer&) { in NameOf()
140 SkRecords::Draw fDraw;

12