Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: gm/multipicturedraw.cpp

Issue 873753002: Spin off GM::runAsBench() from flags. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/gm.h ('k') | gm/variedtext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « gm/gm.h ('k') | gm/variedtext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698