HomeSort by relevance Sort by last modified time
    Searched refs:SkRecords (Results 1 - 25 of 38) sorted by null

1 2

  /external/skia/tests/
RecordTest.cpp 12 #include "SkRecords.h"
25 void operator()(const SkRecords::DrawRect& draw) {
44 void operator()(SkRecords::DrawRect* draw) {
65 APPEND(record, SkRecords::DrawRect, paint, rect);
83 APPEND(record, SkRecords::Save);
84 APPEND(record, SkRecords::ClipRect);
85 APPEND(record, SkRecords::NoOp);
86 APPEND(record, SkRecords::DrawRect);
87 APPEND(record, SkRecords::NoOp);
88 APPEND(record, SkRecords::NoOp)
    [all...]
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::SetMatrix>(r, translateRecord, 0)
    [all...]
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::SaveLayer>(r, record, 0)
    [all...]
RecordTestUtils.h 12 #include "SkRecords.h"
18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {}
21 SkRecords::Type type;
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>());
  /external/skqp/tests/
RecordTest.cpp 12 #include "SkRecords.h"
25 void operator()(const SkRecords::DrawRect& draw) {
44 void operator()(SkRecords::DrawRect* draw) {
65 APPEND(record, SkRecords::DrawRect, paint, rect);
83 APPEND(record, SkRecords::Save);
84 APPEND(record, SkRecords::ClipRect);
85 APPEND(record, SkRecords::NoOp);
86 APPEND(record, SkRecords::DrawRect);
87 APPEND(record, SkRecords::NoOp);
88 APPEND(record, SkRecords::NoOp)
    [all...]
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::SetMatrix>(r, translateRecord, 0)
    [all...]
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::SaveLayer>(r, record, 0)
    [all...]
RecordTestUtils.h 12 #include "SkRecords.h"
18 ReadAs() : ptr(nullptr), type(SkRecords::Type(~0)) {}
21 SkRecords::Type type;
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>());
  /external/skia/src/core/
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::Adopted<Existing>& proofOfAdoption)
    [all...]
SkPictureCommon.h 16 #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)
SkMiniRecorder.h 11 #include "SkRecords.h"
51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
SkRecords.cpp 9 #include "SkRecords.h"
11 namespace SkRecords {
SkRecorder.cpp 139 this->append<SkRecords::DrawPaint>(paint);
143 this->append<SkRecords::DrawBehind>(paint);
150 this->append<SkRecords::DrawPoints>(paint, mode, SkToUInt(count), this->copy(pts, count));
155 this->append<SkRecords::DrawRect>(paint, rect);
160 this->append<SkRecords::DrawEdgeAARect>(rect, aa, color, mode);
164 this->append<SkRecords::DrawRegion>(paint, region);
168 this->append<SkRecords::DrawOval>(paint, oval);
173 this->append<SkRecords::DrawArc>(paint, oval, startAngle, sweepAngle, useCenter);
177 this->append<SkRecords::DrawRRect>(paint, rrect);
181 this->append<SkRecords::DrawDRRect>(paint, outer, inner)
    [all...]
SkRecord.cpp 35 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
SkMiniRecorder.cpp 19 using namespace SkRecords;
55 SkRecords::Draw(c, nullptr, nullptr, 0, nullptr)(fOp);
125 SkRecords::Draw(canvas, nullptr, nullptr, 0, nullptr)(*op); \
  /external/skqp/src/core/
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::Adopted<Existing>& proofOfAdoption)
    [all...]
SkPictureCommon.h 16 #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)
SkMiniRecorder.h 11 #include "SkRecords.h"
51 Max<sizeof(SkRecords::DrawPath),
52 Max<sizeof(SkRecords::DrawRect),
53 sizeof(SkRecords::DrawTextBlob)>::val>::val;
SkRecords.cpp 9 #include "SkRecords.h"
11 namespace SkRecords {
SkRecorder.cpp 139 this->append<SkRecords::DrawPaint>(paint);
146 this->append<SkRecords::DrawPoints>(paint, mode, SkToUInt(count), this->copy(pts, count));
151 this->append<SkRecords::DrawRect>(paint, rect);
156 this->append<SkRecords::DrawEdgeAARect>(rect, aa, color, mode);
160 this->append<SkRecords::DrawRegion>(paint, region);
164 this->append<SkRecords::DrawOval>(paint, oval);
169 this->append<SkRecords::DrawArc>(paint, oval, startAngle, sweepAngle, useCenter);
173 this->append<SkRecords::DrawRRect>(paint, rrect);
177 this->append<SkRecords::DrawDRRect>(paint, outer, inner);
186 this->append<SkRecords::DrawDrawable>(this->copy(matrix), drawable->getBounds(), fDrawableList->count() - 1)
    [all...]
SkRecord.cpp 35 [](Record op) { return op.type() == SkRecords::NoOp_Type; });
  /external/skia/tools/
DumpRecord.cpp 40 void operator()(const SkRecords::NoOp&) {
49 void print(const SkRecords::Restore& command, double ns) {
54 void print(const SkRecords::Save& command, double ns) {
59 void print(const SkRecords::SaveLayer& command, double ns) {
64 void print(const SkRecords::DrawPicture& command, double ns) {
80 void print(const SkRecords::DrawAnnotation& command, double ns) {
117 #define CASE(U) case SkRecords::U##_Type: return #U;
124 static const char* NameOf(const SkRecords::SaveLayer&) {
131 SkRecords::Draw fDraw;
  /external/skqp/tools/
DumpRecord.cpp 40 void operator()(const SkRecords::NoOp&) {
49 void print(const SkRecords::Restore& command, double ns) {
54 void print(const SkRecords::Save& command, double ns) {
59 void print(const SkRecords::SaveLayer& command, double ns) {
64 void print(const SkRecords::DrawPicture& command, double ns) {
80 void print(const SkRecords::DrawAnnotation& command, double ns) {
117 #define CASE(U) case SkRecords::U##_Type: return #U;
124 static const char* NameOf(const SkRecords::SaveLayer&) {
131 SkRecords::Draw fDraw;

Completed in 140 milliseconds

1 2