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

Side by Side Diff: gm/arcofzorro.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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/alphagradients.cpp ('k') | gm/bicubicfilter.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 2013 Google Inc. 2 * Copyright 2013 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 #include "SkRandom.h" 9 #include "SkRandom.h"
10 10
11 namespace skiagm { 11 namespace skiagm {
12 12
13 // This GM draws a lot of arcs in a 'Z' shape. It particularly exercises 13 // This GM draws a lot of arcs in a 'Z' shape. It particularly exercises
14 // the 'drawArc' code near a singularly of its processing (i.e., near the 14 // the 'drawArc' code near a singularly of its processing (i.e., near the
15 // edge of one of its underlying quads). 15 // edge of one of its underlying quads).
16 class ArcOfZorroGM : public GM { 16 class ArcOfZorroGM : public GM {
17 public: 17 public:
18 ArcOfZorroGM() { 18 ArcOfZorroGM() {
19 this->setBGColor(0xFFCCCCCC); 19 this->setBGColor(0xFFCCCCCC);
20 } 20 }
21 21
22 protected: 22 protected:
23 virtual uint32_t onGetFlags() const SK_OVERRIDE {
24 return kSkipTiled_Flag;
25 }
26
23 virtual SkString onShortName() SK_OVERRIDE { 27 virtual SkString onShortName() SK_OVERRIDE {
24 return SkString("arcofzorro"); 28 return SkString("arcofzorro");
25 } 29 }
26 30
27 virtual SkISize onISize() SK_OVERRIDE { 31 virtual SkISize onISize() SK_OVERRIDE {
28 return make_isize(1000, 1000); 32 return make_isize(1000, 1000);
29 } 33 }
30 34
31 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 35 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
32 SkRandom rand; 36 SkRandom rand;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 78
75 private: 79 private:
76 typedef GM INHERITED; 80 typedef GM INHERITED;
77 }; 81 };
78 82
79 ////////////////////////////////////////////////////////////////////////////// 83 //////////////////////////////////////////////////////////////////////////////
80 84
81 DEF_GM( return SkNEW(ArcOfZorroGM); ) 85 DEF_GM( return SkNEW(ArcOfZorroGM); )
82 86
83 } 87 }
OLDNEW
« no previous file with comments | « gm/alphagradients.cpp ('k') | gm/bicubicfilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698