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

Side by Side Diff: gm/nonclosedpaths.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/ninepatchstretch.cpp ('k') | gm/ovals.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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 14 matching lines...) Expand all
25 FakeCloseCorner, // The last point coincides with the first one at a c orner. 25 FakeCloseCorner, // The last point coincides with the first one at a c orner.
26 // The path looks closed, but final rendering has 2 e nds with cap. 26 // The path looks closed, but final rendering has 2 e nds with cap.
27 27
28 FakeCloseMiddle, // The last point coincides with the first one in the middle of a line. 28 FakeCloseMiddle, // The last point coincides with the first one in the middle of a line.
29 // The path looks closed, and the final rendering loo ks closed too. 29 // The path looks closed, and the final rendering loo ks closed too.
30 30
31 kClosureTypeCount 31 kClosureTypeCount
32 }; 32 };
33 33
34 protected: 34 protected:
35 virtual uint32_t onGetFlags() const SK_OVERRIDE {
36 return kSkipTiled_Flag;
37 }
38
35 virtual SkString onShortName() SK_OVERRIDE { 39 virtual SkString onShortName() SK_OVERRIDE {
36 return SkString("nonclosedpaths"); 40 return SkString("nonclosedpaths");
37 } 41 }
38 42
39 // 12 * 18 + 3 cases, every case is 100 * 100 pixels. 43 // 12 * 18 + 3 cases, every case is 100 * 100 pixels.
40 virtual SkISize onISize() SK_OVERRIDE { 44 virtual SkISize onISize() SK_OVERRIDE {
41 return SkISize::Make(1220, 1920); 45 return SkISize::Make(1220, 1920);
42 } 46 }
43 47
44 // Use rect-like geometry for non-closed path, for right angles make it 48 // Use rect-like geometry for non-closed path, for right angles make it
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 140
137 private: 141 private:
138 typedef GM INHERITED; 142 typedef GM INHERITED;
139 }; 143 };
140 144
141 ////////////////////////////////////////////////////////////////////////////// 145 //////////////////////////////////////////////////////////////////////////////
142 146
143 DEF_GM(return new NonClosedPathsGM;) 147 DEF_GM(return new NonClosedPathsGM;)
144 148
145 } 149 }
OLDNEW
« no previous file with comments | « gm/ninepatchstretch.cpp ('k') | gm/ovals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698