OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "gm.h" | 8 #include "gm.h" |
9 | 9 |
10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 SkASSERT(SK_ARRAY_COUNT(gContentNames) == kContentCnt); | 527 SkASSERT(SK_ARRAY_COUNT(gContentNames) == kContentCnt); |
528 | 528 |
529 SkString name("multipicturedraw_"); | 529 SkString name("multipicturedraw_"); |
530 | 530 |
531 name.append(gContentNames[fContent]); | 531 name.append(gContentNames[fContent]); |
532 name.append("_"); | 532 name.append("_"); |
533 name.append(gLayoutNames[fLayout]); | 533 name.append(gLayoutNames[fLayout]); |
534 return name; | 534 return name; |
535 } | 535 } |
536 | 536 |
537 uint32_t onGetFlags() const SK_OVERRIDE { return kSkipTiled_Flag; } | |
538 bool runAsBench() const SK_OVERRIDE { return true; } | 537 bool runAsBench() const SK_OVERRIDE { return true; } |
539 | 538 |
540 private: | 539 private: |
541 typedef GM INHERITED; | 540 typedef GM INHERITED; |
542 }; | 541 }; |
543 | 542 |
544 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kNoClipSingle_
Content, | 543 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kNoClipSingle_
Content, |
545 MultiPictureDraw::kSimple_Layout
));) | 544 MultiPictureDraw::kSimple_Layout
));) |
546 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRectClipMulti
_Content, | 545 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRectClipMulti
_Content, |
547 MultiPictureDraw::kSimple_Layout
));) | 546 MultiPictureDraw::kSimple_Layout
));) |
(...skipping 16 matching lines...) Expand all Loading... |
564 MultiPictureDraw::kTiled_Layout)
);) | 563 MultiPictureDraw::kTiled_Layout)
);) |
565 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, | 564 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, |
566 MultiPictureDraw::kTiled_Layout)
);) | 565 MultiPictureDraw::kTiled_Layout)
);) |
567 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, | 566 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, |
568 MultiPictureDraw::kTiled_Layout)
);) | 567 MultiPictureDraw::kTiled_Layout)
);) |
569 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, | 568 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, |
570 MultiPictureDraw::kTiled_Layout)
);) | 569 MultiPictureDraw::kTiled_Layout)
);) |
571 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, | 570 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, |
572 MultiPictureDraw::kTiled_Layout)
);) | 571 MultiPictureDraw::kTiled_Layout)
);) |
573 } | 572 } |
OLD | NEW |