/external/skia/src/core/ |
D | SkPictureCommon.h | 23 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr() 30 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->willPlayBackBitmaps(); } in operator() 31 bool operator()(const SkRecords::DrawDrawable&) { /*TODO*/ return false; } in operator() 38 static SK_WHEN(T::kTags & SkRecords::kHasImage_Tag, bool) CheckBitmap(const T&) { in SK_WHEN() 44 static SK_WHEN(!(T::kTags & SkRecords::kHasImage_Tag), bool) CheckBitmap(const T& op) { in CheckBitmap() 50 static SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, bool) CheckPaint(const T& op) { in SK_WHEN() 55 static SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), bool) CheckPaint(const T&) { in CheckPaint() 75 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } in AsPtr() 80 void operator()(const SkRecords::DrawPicture& op) { in operator() 83 void operator()(const SkRecords::DrawDrawable&) { /* TODO */ } in operator() [all …]
|
D | SkRecord.h | 50 auto visit(int i, F&& f) const -> decltype(f(SkRecords::NoOp())) { 59 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) { 97 T* replace(int i, const SkRecords::Adopted<Existing>& proofOfAdoption) { in replace() 163 SkRecords::Type type() const { return (SkRecords::Type)(fTypeAndPtr >> kTypeShift); } in type() 168 auto visit(F&& f) const -> decltype(f(SkRecords::NoOp())) { 169 #define CASE(T) case SkRecords::T##_Type: return f(*(const SkRecords::T*)this->ptr()); 173 return f(SkRecords::NoOp()); 178 auto mutate(F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) { 179 #define CASE(T) case SkRecords::T##_Type: return f((SkRecords::T*)this->ptr()); 183 return f((SkRecords::NoOp*)nullptr);
|
D | SkMiniRecorder.cpp | 17 using namespace SkRecords; 38 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); in playback() 114 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \ in flushAndReset()
|
D | SkPictureAnalyzer.cpp | 42 const SkRecords::ClipPath clipOp = { in analyzeClipPath() 45 SkRecords::ClipOpAndAA(op, doAntiAlias) in analyzeClipPath()
|
D | SkRecorder.cpp | 72 new (fRecord->append<SkRecords::T>()) SkRecords::T{__VA_ARGS__} 397 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRect() 403 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRRect() 409 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 | 40 [](Record op) { return op.type() == SkRecords::NoOp_Type; }); in defrag()
|
D | SkRecordDraw.cpp | 31 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw() 43 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw() 63 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM); in SkRecordPartialDraw() 69 namespace SkRecords { namespace 620 SkRecords::FillBounds visitor(cullRect, record, bounds); in SkRecordFillBounds()
|
D | SkRecordDraw.h | 43 namespace SkRecords {
|
D | SkRecordOpts.cpp | 14 using namespace SkRecords;
|
/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/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/include/private/ |
D | SkMiniRecorder.h | 50 Max<sizeof(SkRecords::DrawPath), 51 Max<sizeof(SkRecords::DrawRect), 52 sizeof(SkRecords::DrawTextBlob)>::val>::val;
|
D | SkRecords.h | 34 namespace SkRecords {
|
/external/skia/gn/ |
D | core.gni | 273 "$_src/core/SkRecords.cpp", 466 "$_include/private/SkRecords.h",
|
/external/skia/dm/ |
D | DMSrcSink.cpp | 1768 SkRecords::Draw d(canvas, nullptr, fDrawables.begin(), fDrawables.count(), &SkMatrix::I()); in draw() 1774 SK_WHEN(T::kTags & SkRecords::kDraw_Tag, void) operator()(const T& op) { in SK_WHEN() 1783 skstd::enable_if_t<!(T::kTags & SkRecords::kDraw_Tag), void> operator()(const T& op) { in operator ()()
|
/external/skia/ |
D | Android.bp | 255 "src/core/SkRecords.cpp",
|