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

12

/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>());
/external/skqp/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>());
/external/skia/src/core/
H A DSkRecord.h12 #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 DSkPictureCommon.h16 #include "SkRecords.h"
24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; }
35 void operator()(const SkRecords::DrawPoints& op) {
48 void operator()(const SkRecords::DrawPath& op) {
65 void operator()(const SkRecords::ClipPath& op) {
72 void operator()(const SkRecords::SaveLayer& op) {
77 SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, void) operator()(const T& op) {
82 SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), void)
H A DSkMiniRecorder.h11 #include "SkRecords.h"
51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
H A DSkRecords.cpp9 #include "SkRecords.h"
11 namespace SkRecords { namespace
H A DSkRecord.cpp35 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
H A DSkMiniRecorder.cpp18 using namespace SkRecords;
54 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp);
124 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \
H A DSkRecordDraw.h29 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw.
43 namespace SkRecords { namespace
80 } // namespace SkRecords
/external/skqp/src/core/
H A DSkRecord.h12 #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 DSkPictureCommon.h16 #include "SkRecords.h"
24 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; }
35 void operator()(const SkRecords::DrawPoints& op) {
48 void operator()(const SkRecords::DrawPath& op) {
65 void operator()(const SkRecords::ClipPath& op) {
72 void operator()(const SkRecords::SaveLayer& op) {
77 SK_WHEN(T::kTags & SkRecords::kHasPaint_Tag, void) operator()(const T& op) {
82 SK_WHEN(!(T::kTags & SkRecords::kHasPaint_Tag), void)
H A DSkMiniRecorder.h11 #include "SkRecords.h"
51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
H A DSkRecords.cpp9 #include "SkRecords.h"
11 namespace SkRecords { namespace
H A DSkRecord.cpp35 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
H A DSkMiniRecorder.cpp18 using namespace SkRecords;
54 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp);
124 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \
/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/skqp/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;

Completed in 373 milliseconds

12