/external/skia/tests/ |
D | RecordTest.cpp | 24 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 …]
|
D | RecordOptsTest.cpp | 31 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 …]
|
D | RecordDrawTest.cpp | 47 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 …]
|
D | RecorderTest.cpp | 50 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()
|
D | RecordTestUtils.h | 18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {} in ReadAs() 21 SkRecords::Type type;
|
D | RecordPatternTest.cpp | 15 using namespace SkRecords;
|
/external/skia/src/core/ |
D | SkPictureCommon.h | 24 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 …]
|
D | SkRecord.h | 41 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 …]
|
D | SkMiniRecorder.h | 51 Max<sizeof(SkRecords::DrawPath), 52 Max<sizeof(SkRecords::DrawRect), 53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
|
D | SkPictureAnalyzer.cpp | 42 const SkRecords::ClipPath clipOp = { in analyzeClipPath() 45 SkRecords::ClipOpAndAA(op, doAntiAlias) in analyzeClipPath()
|
D | SkMiniRecorder.cpp | 17 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()
|
D | SkRecorder.cpp | 73 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()
|
D | SkRecordPattern.h | 14 namespace SkRecords { 71 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } in AsPtr()
|
D | SkRecords.cpp | 11 namespace SkRecords { namespace
|
D | SkRecord.cpp | 35 [](Record op) { return op.type() == SkRecords::NoOp_Type; }); in defrag()
|
D | SkRecordDraw.cpp | 32 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()
|
D | SkRecordDraw.h | 43 namespace SkRecords {
|
D | SkRecordOpts.cpp | 14 using namespace SkRecords;
|
D | SkRecords.h | 36 namespace SkRecords {
|
/external/skia/tools/ |
D | DumpRecord.cpp | 39 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/ |
D | core.gni | 257 "$_src/core/SkRecords.cpp", 258 "$_src/core/SkRecords.h",
|
/external/skia/dm/ |
D | DMSrcSink.cpp | 1825 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/ |
D | Android.bp | 253 "src/core/SkRecords.cpp",
|