/third_party/skia/src/core/ |
H A D | SkRecorder.cpp | 155 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 in onDrawDrawable() [all...] |
H A D | SkRecord.h | 14 #include "src/core/SkRecords.h" 24 // type T which has a static const SkRecords::Type kType. That is to say, SkRecord is compatible 25 // only with SkRecords::* structs defined in SkRecords.h. Your compiler will helpfully yell if you 39 // This operator() must be defined for at least all SkRecords::*. 41 auto visit(int i, F&& f) const -> decltype(f(SkRecords::NoOp())) { in f() 48 // This operator() must be defined for at least all SkRecords::*. 50 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) { in decltype() 55 // Here T can be any class, not just those from SkRecords. Throws on failure. 107 // fAlloc: [SkRecords [all...] |
H A D | SkPictureCommon.h | 18 #include "src/core/SkRecords.h" 24 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>
|
H A D | SkMiniRecorder.h | 14 #include "src/core/SkRecords.h" 52 Max<sizeof(SkRecords::DrawPath), 53 Max<sizeof(SkRecords::DrawRect), 54 sizeof(SkRecords::DrawTextBlob)>::val>::val;
|
H A D | SkMiniRecorder.cpp | 19 using namespace SkRecords; 55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); 129 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \ in flushAndReset()
|
H A D | SkRecordPattern.h | 14 namespace SkRecords { namespace 72 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } in AsPtr() 175 } // namespace SkRecords
|
H A D | SkRecordDraw.cpp | 36 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw() 41 // This visit call uses the SkRecords::Draw::operator() to call in SkRecordDraw() 48 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); in SkRecordDraw() 53 // This visit call uses the SkRecords::Draw::operator() to call in SkRecordDraw() 68 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM); in SkRecordPartialDraw() 74 namespace SkRecords { namespace 552 } // namespace SkRecords 557 SkRecords::FillBounds visitor(cullRect, record, bounds, meta); in SkRecordFillBounds()
|
H A D | SkRecords.cpp | 9 #include "src/core/SkRecords.h" 11 namespace SkRecords { namespace 24 } // namespace SkRecords
|
H A D | SkRecord.cpp | 35 [](Record op) { return op.type() == SkRecords::NoOp_Type; }); in defrag()
|
H A D | SkRecordDraw.h | 30 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw. 44 namespace SkRecords { namespace 81 } // namespace SkRecords
|
H A D | SkBigPicture.cpp | 62 void operator()(const SkRecords::DrawPicture& op) { in operator ()()
|
H A D | SkRecordOpts.cpp | 13 #include "src/core/SkRecords.h" 15 using namespace SkRecords;
|
H A D | SkRecords.h | 29 namespace SkRecords { namespace 36 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to operate on SkRecords 86 // Defines SkRecords::Type, an enum of all record types. 342 } // namespace SkRecords
|
/third_party/skia/tests/ |
H A D | RecordTest.cpp | 12 #include "src/core/SkRecords.h" 25 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 in DEF_TEST() [all...] |
H A D | RecordOptsTest.cpp | 18 #include "src/core/SkRecords.h" 30 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 in DEF_TEST() [all...] |
H A D | RecordDrawTest.cpp | 18 #include "src/core/SkRecords.h" 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::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 in DEF_TEST() [all...] |
H A D | RecorderTest.cpp | 15 #include "src/core/SkRecords.h" 50 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()
|
H A D | RecordTestUtils.h | 12 #include "src/core/SkRecords.h" 18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {} in ReadAs() 21 SkRecords::Type type;
|
H A D | RecordPatternTest.cpp | 13 #include "src/core/SkRecords.h" 15 using namespace SkRecords;
|
H A D | CanvasTest.cpp | 66 SkRect operator()(const SkRecords::ClipRect& op) { in operator ()()
|
/third_party/skia/tools/ |
H A D | dump_record.cpp | 51 void operator()(const SkRecords::NoOp&) { in operator ()() argument 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() argument 140 SkRecords::Draw fDraw;
|