/external/skia/tests/ |
H A D | RecordTest.cpp | 12 #include "SkRecords.h" 24 void operator()(const SkRecords::DrawRect& draw) { 43 void operator()(SkRecords::DrawRect* draw) { 64 APPEND(record, SkRecords::DrawRect, paint, rect); 82 APPEND(record, SkRecords::Save); 83 APPEND(record, SkRecords::ClipRect); 84 APPEND(record, SkRecords::NoOp); 85 APPEND(record, SkRecords::DrawRect); 86 APPEND(record, SkRecords::NoOp); 87 APPEND(record, SkRecords [all...] |
H A D | RecordOptsTest.cpp | 16 #include "SkRecords.h" 31 record.replace<SkRecords::NoOp>(1); // NoOps should be allowed. 35 REPORTER_ASSERT(r, 2 == count_instances_of_type<SkRecords::DrawRect>(record)); 48 assert_type<SkRecords::NoOp>(r, record, i); 71 assert_type<SkRecords::NoOp>(r, record, index); 88 assert_type<SkRecords::Save> (r, record, 0); 89 assert_type<SkRecords::SaveLayer>(r, record, 1); 90 assert_type<SkRecords::Restore> (r, record, 2); 91 assert_type<SkRecords::Restore> (r, record, 3); 94 assert_type<SkRecords [all...] |
H A D | RecordDrawTest.cpp | 18 #include "SkRecords.h" 47 assert_type<SkRecords::DrawPaint>(r, record, 0); 48 assert_type<SkRecords::Save> (r, record, 1); 49 assert_type<SkRecords::Concat> (r, record, 2); 50 assert_type<SkRecords::Restore> (r, record, 3); 72 REPORTER_ASSERT(r, 1 == count_instances_of_type<SkRecords::DrawRect>(rerecord)); 73 REPORTER_ASSERT(r, 0 == count_instances_of_type<SkRecords::ClipRect>(rerecord)); 86 int save_count = count_instances_of_type<SkRecords::Save>(rerecord); 87 int restore_count = count_instances_of_type<SkRecords::Save>(rerecord); 108 assert_type<SkRecords [all...] |
H A D | RecordTestUtils.h | 12 #include "SkRecords.h" 18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {} 21 SkRecords::Type type;
|
H A D | RecorderTest.cpp | 13 #include "SkRecords.h" 50 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); 92 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImage>()); 107 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImageRect>());
|
H A D | RecordPatternTest.cpp | 13 #include "SkRecords.h" 15 using namespace SkRecords;
|
/external/skia/src/core/ |
H A D | SkPictureCommon.h | 16 #include "SkRecords.h" 24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } 31 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->willPlayBackBitmaps(); } 32 bool operator()(const SkRecords::DrawDrawable&) { /*TODO*/ return false; } argument 39 static SK_WHEN(T::kTags & SkRecords::kHasImage_Tag, bool) CheckBitmap(const T&) { 45 static SK_WHEN(!(T::kTags & SkRecords::kHasImage_Tag), bool) CheckBitmap(const T& op) { 51 static SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, bool) CheckPaint(const T& op) { 56 static SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), bool) CheckPaint(const T&) { 76 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } 81 void operator()(const SkRecords [all...] |
H A D | SkRecord.h | 12 #include "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())) { 48 // This operator() must be defined for at least all SkRecords::*. 50 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) { 55 // Here T can be any class, not just those from SkRecords. Throws on failure. 92 T* replace(int i, const SkRecords [all...] |
H A D | SkMiniRecorder.h | 11 #include "SkRecords.h" 51 Max<sizeof(SkRecords::DrawPath), 52 Max<sizeof(SkRecords::DrawRect), 53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
|
H A D | SkRecords.cpp | 9 #include "SkRecords.h" 11 namespace SkRecords { namespace
|
H A D | SkPictureAnalyzer.cpp | 12 #include "SkRecords.h" 42 const SkRecords::ClipPath clipOp = { 45 SkRecords::ClipOpAndAA(op, doAntiAlias)
|
H A D | SkRecord.cpp | 35 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
|
H A D | SkMiniRecorder.cpp | 17 using namespace SkRecords; 55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp); 131 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \
|
H A D | SkRecordDraw.h | 29 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw. 43 namespace SkRecords { namespace 80 } // namespace SkRecords
|
H A D | SkRecordPattern.h | 14 namespace SkRecords { namespace 71 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } 174 } // namespace SkRecords
|
H A D | SkRecorder.cpp | 73 new (fRecord->append<SkRecords::T>()) SkRecords::T{__VA_ARGS__} 381 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); 387 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); 393 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
|
H A D | SkRecordDraw.cpp | 32 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); 37 // This visit call uses the SkRecords::Draw::operator() to call 44 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); 49 // This visit call uses the SkRecords::Draw::operator() to call 64 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM); 70 namespace SkRecords { namespace 605 } // namespace SkRecords 608 SkRecords::FillBounds visitor(cullRect, record, bounds);
|
H A D | SkRecordOpts.cpp | 11 #include "SkRecords.h" 14 using namespace SkRecords;
|
H A D | SkRecords.h | 36 namespace SkRecords { namespace 43 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to operate on SkRecords 87 // Defines SkRecords::Type, an enum of all record types. 359 } // namespace SkRecords
|
/external/skia/tools/ |
H A D | DumpRecord.cpp | 39 void operator()(const SkRecords::NoOp&) { argument 48 void print(const SkRecords::Restore& command, double ns) { 53 void print(const SkRecords::Save& command, double ns) { 58 void print(const SkRecords::SaveLayer& command, double ns) { 63 void print(const SkRecords::DrawPicture& command, double ns) { 79 void print(const SkRecords::DrawAnnotation& command, double ns) { 116 #define CASE(U) case SkRecords::U##_Type: return #U; 123 static const char* NameOf(const SkRecords::SaveLayer&) { argument 130 SkRecords::Draw fDraw;
|
/external/skia/dm/ |
H A D | DMSrcSink.cpp | 1812 // This is like SkRecords::Draw, in that it plays back SkRecords ops into a Canvas. 1813 // Unlike SkRecords::Draw, it builds a single-op sub-picture out of each Draw-type op. 1823 // By default SkRecords::Draw() uses the canvas' matrix as its initial matrix, 1825 SkRecords::Draw d(canvas, nullptr, fDrawables.begin(), fDrawables.count(), &SkMatrix::I()); 1831 SK_WHEN(T::kTags & SkRecords::kDraw_Tag, void) operator()(const T& op) { 1840 skstd::enable_if_t<!(T::kTags & SkRecords::kDraw_Tag), void> operator()(const T& op) {
|