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 kAsBench_Flag | kSkipTi
led_Flag; } | 537 uint32_t onGetFlags() const SK_OVERRIDE { return kSkipTiled_Flag; } |
| 538 bool runAsBench() const SK_OVERRIDE { return true; } |
538 | 539 |
539 private: | 540 private: |
540 typedef GM INHERITED; | 541 typedef GM INHERITED; |
541 }; | 542 }; |
542 | 543 |
543 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kNoClipSingle_
Content, | 544 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kNoClipSingle_
Content, |
544 MultiPictureDraw::kSimple_Layout
));) | 545 MultiPictureDraw::kSimple_Layout
));) |
545 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRectClipMulti
_Content, | 546 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRectClipMulti
_Content, |
546 MultiPictureDraw::kSimple_Layout
));) | 547 MultiPictureDraw::kSimple_Layout
));) |
547 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRRectClipMult
i_Content, | 548 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kRRectClipMult
i_Content, |
(...skipping 15 matching lines...) Expand all Loading... |
563 MultiPictureDraw::kTiled_Layout)
);) | 564 MultiPictureDraw::kTiled_Layout)
);) |
564 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, | 565 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kPathClipMulti
_Content, |
565 MultiPictureDraw::kTiled_Layout)
);) | 566 MultiPictureDraw::kTiled_Layout)
);) |
566 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, | 567 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kInvPathClipMu
lti_Content, |
567 MultiPictureDraw::kTiled_Layout)
);) | 568 MultiPictureDraw::kTiled_Layout)
);) |
568 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, | 569 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kSierpinski_Co
ntent, |
569 MultiPictureDraw::kTiled_Layout)
);) | 570 MultiPictureDraw::kTiled_Layout)
);) |
570 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, | 571 DEF_GM(return SkNEW_ARGS(MultiPictureDraw, (MultiPictureDraw::kBigLayer_Cont
ent, |
571 MultiPictureDraw::kTiled_Layout)
);) | 572 MultiPictureDraw::kTiled_Layout)
);) |
572 } | 573 } |
OLD | NEW |