Searched refs:SkRecords (Results 1 - 21 of 21) sorted by relevance

/external/skia/tests/
H A DRecordTest.cpp12 #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 DRecordOptsTest.cpp16 #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 DRecordDrawTest.cpp18 #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 DRecordTestUtils.h12 #include "SkRecords.h"
18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {}
21 SkRecords::Type type;
H A DRecorderTest.cpp13 #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 DRecordPatternTest.cpp13 #include "SkRecords.h"
15 using namespace SkRecords;
/external/skia/src/core/
H A DSkPictureCommon.h16 #include "SkRecords.h"
23 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; }
30 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->willPlayBackBitmaps(); }
31 bool operator()(const SkRecords::DrawDrawable&) { /*TODO*/ return false; } argument
38 static SK_WHEN(T::kTags & SkRecords::kHasImage_Tag, bool) CheckBitmap(const T&) {
44 static SK_WHEN(!(T::kTags & SkRecords::kHasImage_Tag), bool) CheckBitmap(const T& op) {
50 static SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, bool) CheckPaint(const T& op) {
55 static SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), bool) CheckPaint(const T&) {
75 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; }
80 void operator()(const SkRecords
83 operator ()(const SkRecords::DrawDrawable&) argument
[all...]
H A DSkRecord.h11 #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
48 // This operator() must be defined for at least all SkRecords::*.
50 auto visit(int i, F&& f) const -> decltype(f(SkRecords::NoOp())) {
57 // This operator() must be defined for at least all SkRecords::*.
59 auto mutate(int i, F&& f) -> decltype(f((SkRecords::NoOp*)nullptr)) {
64 // Here T can be any class, not just those from SkRecords. Throws on failure.
97 T* replace(int i, const SkRecords
[all...]
H A DSkRecords.cpp9 #include "SkRecords.h"
11 namespace SkRecords { namespace
H A DSkPictureAnalyzer.cpp12 #include "SkRecords.h"
42 const SkRecords::ClipPath clipOp = {
45 SkRecords::ClipOpAndAA(op, doAntiAlias)
H A DSkMiniRecorder.cpp17 using namespace SkRecords;
38 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp);
114 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \
H A DSkRecord.cpp40 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
H A DSkRecordDraw.h29 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw.
43 namespace SkRecords { namespace
80 } // namespace SkRecords
H A DSkRecordPattern.h14 namespace SkRecords { namespace
71 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; }
174 } // namespace SkRecords
H A DSkRecorder.cpp72 new (fRecord->append<SkRecords::T>()) SkRecords::T{__VA_ARGS__}
397 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
403 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
409 SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
H A DSkRecordDraw.cpp31 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount);
36 // This visit call uses the SkRecords::Draw::operator() to call
43 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount);
48 // This visit call uses the SkRecords::Draw::operator() to call
63 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM);
69 namespace SkRecords { namespace
617 } // namespace SkRecords
620 SkRecords::FillBounds visitor(cullRect, record, bounds);
H A DSkRecordOpts.cpp11 #include "SkRecords.h"
14 using namespace SkRecords;
/external/skia/tools/
H A DDumpRecord.cpp39 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/include/private/
H A DSkMiniRecorder.h11 #include "SkRecords.h"
50 Max<sizeof(SkRecords::DrawPath),
51 Max<sizeof(SkRecords::DrawRect),
52 sizeof(SkRecords::DrawTextBlob)>::val>::val;
H A DSkRecords.h34 namespace SkRecords { namespace
41 // 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.
357 } // namespace SkRecords
/external/skia/dm/
H A DDMSrcSink.cpp1755 // This is like SkRecords::Draw, in that it plays back SkRecords ops into a Canvas.
1756 // Unlike SkRecords::Draw, it builds a single-op sub-picture out of each Draw-type op.
1766 // By default SkRecords::Draw() uses the canvas' matrix as its initial matrix,
1768 SkRecords::Draw d(canvas, nullptr, fDrawables.begin(), fDrawables.count(), &SkMatrix::I());
1774 SK_WHEN(T::kTags & SkRecords::kDraw_Tag, void) operator()(const T& op) {
1783 skstd::enable_if_t<!(T::kTags & SkRecords::kDraw_Tag), void> operator()(const T& op) {

Completed in 502 milliseconds