/external/skia/tools/ |
H A D | DumpRecord.cpp | 42 void operator()(const SkRecords::NoOp&) { argument 51 void print(const SkRecords::Restore& command, double time) { 56 void print(const SkRecords::Save& command, double time) { 61 void print(const SkRecords::SaveLayer& command, double time) { 84 #define CASE(U) case SkRecords::U##_Type: return #U; 91 static const char* NameOf(const SkRecords::SaveLayer&) { argument 98 SkRecords::Draw fDraw;
|
/external/skia/tests/ |
H A D | RecordOptsTest.cpp | 15 #include "SkRecords.h" 30 record.replace<SkRecords::NoOp>(1); // NoOps should be allowed. 34 REPORTER_ASSERT(r, 2 == count_instances_of_type<SkRecords::DrawRect>(record)); 47 assert_type<SkRecords::NoOp>(r, record, i); 70 assert_type<SkRecords::NoOp>(r, record, index); 87 assert_type<SkRecords::Save> (r, record, 0); 88 assert_type<SkRecords::SaveLayer>(r, record, 1); 89 assert_type<SkRecords::Restore> (r, record, 2); 90 assert_type<SkRecords::Restore> (r, record, 3); 93 assert_type<SkRecords [all...] |
H A D | RecorderTest.cpp | 13 #include "SkRecords.h" 50 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>()); 67 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::BeginCommentGroup>()); 68 REPORTER_ASSERT(r, 2 == tally.count<SkRecords::AddComment>()); 69 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::EndCommentGroup>()); 111 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImage>()); 126 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImageRect>());
|
H A D | RecordReplaceDrawTest.cpp | 57 assert_type<SkRecords::Save>(r, rerecord, 0); 58 assert_type<SkRecords::DrawRect>(r, rerecord, 1); 59 assert_type<SkRecords::Restore>(r, rerecord, 2); 62 assert_type<SkRecords::DrawRect>(r, rerecord, 0); 142 assert_type<SkRecords::Save>(r, rerecord, 0); 145 assert_type<SkRecords::DrawSprite>(r, rerecord, index + 0); 146 assert_type<SkRecords::DrawRect>(r, rerecord, index + 1); 148 assert_type<SkRecords::Restore>(r, rerecord, 3);
|
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::SetMatrix>(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 | RecordTest.cpp | 14 #include "SkRecords.h" 23 void operator()(const SkRecords::DrawRect& draw) { 42 void operator()(SkRecords::DrawRect* draw) { 63 APPEND(record, SkRecords::DrawRect, paint, rect);
|
H A D | RecordTestUtils.h | 5 #include "SkRecords.h" 10 ReadAs() : ptr(NULL), type(SkRecords::Type(~0)) {} 13 SkRecords::Type type;
|
H A D | RecordPatternTest.cpp | 6 #include "SkRecords.h" 8 using namespace SkRecords;
|
/external/skia/src/core/ |
H A D | SkRecord.h | 11 #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::*. 58 // This operator() must be defined for at least all SkRecords::*. 68 // Here T can be any class, not just those from SkRecords. Throws on failure. 101 T* replace(unsigned i, const SkRecords::Adopted<Existing>& proofOfAdoption) { 125 // fAlloc: [SkRecords::DrawRect][SkRecords [all...] |
H A D | SkRecordDraw.h | 26 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::Draw. 40 namespace SkRecords { namespace 77 } // namespace SkRecords
|
H A D | SkPicture.cpp | 56 static const SkPaint* AsPtr(const SkRecords::Optional<SkPaint>& p) { return p; } 58 /** SkRecords visitor to determine whether an instance may require an 76 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->willPlayBackBitmaps(); } 123 bool operator()(const SkRecords::DrawPicture& op) { return op.picture->hasText(); } 130 /** SkRecords visitor to determine heuristically whether or not a SkPicture 139 void operator()(const SkRecords::DrawPicture& op) { 151 void operator()(const SkRecords::DrawPoints& op) { 164 void operator()(const SkRecords::DrawPath& op) {
|
H A D | SkRecorder.cpp | 59 SkNEW_PLACEMENT_ARGS(fRecord->append<SkRecords::T>(), SkRecords::T, (__VA_ARGS__)) 64 // The structs we're creating all copy their constructor arguments. Given the way the SkRecords 314 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); 320 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); 326 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle);
|
H A D | SkRecordPattern.h | 6 namespace SkRecords { namespace 64 template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } 198 } // namespace SkRecords
|
H A D | SkRecordDraw.cpp | 35 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); 40 // This visit call uses the SkRecords::Draw::operator() to call 47 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount); 52 // This visit call uses the SkRecords::Draw::operator() to call 67 SkRecords::Draw draw(canvas, drawablePicts, NULL, drawableCount, &initialCTM); 73 namespace SkRecords { namespace 779 SkRecords::FillBounds fFillBounds; 782 } // namespace SkRecords 785 SkRecords::FillBounds visitor(cullRect, record); 798 SkRecords [all...] |
H A D | SkRecordOpts.cpp | 11 #include "SkRecords.h" 14 using namespace SkRecords;
|
H A D | SkRecords.h | 16 namespace SkRecords { namespace 23 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to operate on SkRecords 65 // Defines SkRecords::Type, an enum of all record types. 353 } // namespace SkRecords
|
/external/skia/src/gpu/ |
H A D | GrRecordReplaceDraw.cpp | 15 #include "SkRecords.h" 57 class ReplaceDraw : public SkRecords::Draw { 125 void operator()(const SkRecords::DrawPicture& dp) { 148 void operator()(const SkRecords::SaveLayer& sl) {
|
/external/skia/include/core/ |
H A D | SkPicture.h | 34 namespace SkRecords { namespace
|
/external/skia/dm/ |
H A D | DMSrcSink.cpp | 728 // This is like SkRecords::Draw, in that it plays back SkRecords ops into a Canvas. 729 // Unlike SkRecords::Draw, it builds a single-op sub-picture out of each Draw-type op. 739 // By default SkRecords::Draw() uses the canvas' matrix as its initial matrix, 741 SkRecords::Draw(canvas, nullptr, nullptr, 0, &SkMatrix::I())(op); 757 void operator()(const SkRecords::SaveLayer& op) { this->draw(op, fCanvas); }
|