Home
last modified time | relevance | path

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

/external/skia/tests/
DRecordTest.cpp24 void operator()(const SkRecords::DrawRect& draw) { in operator ()()
43 void operator()(SkRecords::DrawRect* draw) { in operator ()()
64 APPEND(record, SkRecords::DrawRect, paint, rect); in DEF_TEST()
82 APPEND(record, SkRecords::Save); in DEF_TEST()
83 APPEND(record, SkRecords::ClipRect); in DEF_TEST()
84 APPEND(record, SkRecords::NoOp); in DEF_TEST()
85 APPEND(record, SkRecords::DrawRect); in DEF_TEST()
86 APPEND(record, SkRecords::NoOp); in DEF_TEST()
87 APPEND(record, SkRecords::NoOp); in DEF_TEST()
88 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;
DRecordPatternTest.cpp15 using namespace SkRecords;
/external/skia/src/core/
DSkPictureCommon.h24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr()
31 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->willPlayBackBitmaps(); } in operator()
32 bool operator()(const SkRecords::DrawDrawable&) { /*TODO*/ return false; } in operator()
39 static SK_WHEN(T::kTags & SkRecords::kHasImage_Tag, bool) CheckBitmap(const T&) { in SK_WHEN()
45 static SK_WHEN(!(T::kTags & SkRecords::kHasImage_Tag), bool) CheckBitmap(const T& op) { in CheckBitmap()
51 static SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, bool) CheckPaint(const T& op) { in SK_WHEN()
56 static SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), bool) CheckPaint(const T&) { in CheckPaint()
76 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr()
81 void operator()(const SkRecords::DrawPicture& op) { in operator()
92 void operator()(const SkRecords::DrawPoints& op) { in operator()
[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()
158 SkRecords::Type type() const { return (SkRecords::Type)(fTypeAndPtr >> kTypeShift); } in type()
163 auto visit(F&& f) const -> decltype(f(SkRecords::NoOp())) {
164 #define CASE(T) case SkRecords::T##_Type: return f(*(const SkRecords::T*)this->ptr());
168 static const SkRecords::NoOp noop{};
174 auto mutate(F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
175 #define CASE(T) case SkRecords::T##_Type: return f((SkRecords::T*)this->ptr());
179 static const SkRecords::NoOp noop{};
[all …]
DSkMiniRecorder.h51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
DSkPictureAnalyzer.cpp42 const SkRecords::ClipPath clipOp = { in analyzeClipPath()
45 SkRecords::ClipOpAndAA(op, doAntiAlias) in analyzeClipPath()
DSkMiniRecorder.cpp17 using namespace SkRecords;
55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); in playback()
131 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \ in flushAndReset()
DSkRecorder.cpp73 new (fRecord->append<SkRecords::T>()) SkRecords::T{__VA_ARGS__}
381 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRect()
387 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRRect()
393 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); in onClipPath()
DSkRecordPattern.h14 namespace SkRecords {
71 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } in AsPtr()
DSkRecords.cpp11 namespace SkRecords { namespace
DSkRecord.cpp35 [](Record op) { return op.type() == SkRecords::NoOp_Type; }); in defrag()
DSkRecordDraw.cpp32 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw()
44 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw()
64 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM); in SkRecordPartialDraw()
70 namespace SkRecords { namespace
608 SkRecords::FillBounds visitor(cullRect, record, bounds); in SkRecordFillBounds()
DSkRecordDraw.h43 namespace SkRecords {
DSkRecordOpts.cpp14 using namespace SkRecords;
DSkRecords.h36 namespace SkRecords {
/external/skia/tools/
DDumpRecord.cpp39 void operator()(const SkRecords::NoOp&) { in operator ()()
48 void print(const SkRecords::Restore& command, double ns) { in print()
53 void print(const SkRecords::Save& command, double ns) { in print()
58 void print(const SkRecords::SaveLayer& command, double ns) { in print()
63 void print(const SkRecords::DrawPicture& command, double ns) { in print()
79 void print(const SkRecords::DrawAnnotation& command, double ns) { in print()
116 #define CASE(U) case SkRecords::U##_Type: return #U; in NameOf()
123 static const char* NameOf(const SkRecords::SaveLayer&) { in NameOf()
130 SkRecords::Draw fDraw;
/external/skia/gn/
Dcore.gni257 "$_src/core/SkRecords.cpp",
258 "$_src/core/SkRecords.h",
/external/skia/dm/
DDMSrcSink.cpp1825 SkRecords::Draw d(canvas, nullptr, fDrawables.begin(), fDrawables.count(), &SkMatrix::I()); in draw()
1831 SK_WHEN(T::kTags & SkRecords::kDraw_Tag, void) operator()(const T& op) { in SK_WHEN()
1840 skstd::enable_if_t<!(T::kTags & SkRecords::kDraw_Tag), void> operator()(const T& op) { in operator ()()
/external/skia/
DAndroid.bp253 "src/core/SkRecords.cpp",