Add dump_record to make inspecting before/after SkRecordOptimize easy.
E.g. dump_record -r http___groupcloned_com_test_plain_list_animation_simple_html_layer_109.skp 0 Save 1 DrawRect 2 DrawRect 3 DrawRect 4 DrawRect 5 Save 6 ClipRect 7 Restore 8 Save 9 ClipRect 10 Restore 11 Restore dump_record -O -r http___groupcloned_com_test_plain_list_animation_simple_html_layer_109.skp 0 Save 1 DrawRect 2 DrawRect 3 DrawRect 4 DrawRect 5 NoOp 6 NoOp 7 NoOp 8 NoOp 9 NoOp 10 NoOp 11 Restore (Reitveld sadly eats my kickass indentation.) BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14596 R=fmalita@chromium.org, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/265983007 git-svn-id: http://skia.googlecode.com/svn/trunk@14600 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
93043bc252
commit
bf07d2e17d
@ -59,6 +59,8 @@ private:
|
||||
#define CASE(U) case SkRecords::U##_Type: return #U;
|
||||
switch(T::kType) { SK_RECORD_TYPES(CASE); }
|
||||
#undef CASE
|
||||
SkDEBUGFAIL("Unknown T");
|
||||
return "Unknown T";
|
||||
}
|
||||
|
||||
static const char* NameOf(const SkRecords::SaveLayer&) {
|
||||
|
Loading…
Reference in New Issue
Block a user