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

Side by Side Diff: gm/hairlines.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/gradtext.cpp ('k') | gm/hairmodes.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 "SkTArray.h" 10 #include "SkTArray.h"
11 11
12 namespace skiagm { 12 namespace skiagm {
13 13
14 class HairlinesGM : public GM { 14 class HairlinesGM : public GM {
15 protected: 15 protected:
16 virtual uint32_t onGetFlags() const SK_OVERRIDE {
17 return kSkipTiled_Flag;
18 }
19
16 20
17 virtual SkString onShortName() SK_OVERRIDE { 21 virtual SkString onShortName() SK_OVERRIDE {
18 return SkString("hairlines"); 22 return SkString("hairlines");
19 } 23 }
20 24
21 virtual SkISize onISize() { return make_isize(800, 600); } 25 virtual SkISize onISize() { return make_isize(800, 600); }
22 26
23 virtual void onOnceBeforeDraw() SK_OVERRIDE { 27 virtual void onOnceBeforeDraw() SK_OVERRIDE {
24 { 28 {
25 SkPath* lineAnglesPath = &fPaths.push_back(); 29 SkPath* lineAnglesPath = &fPaths.push_back();
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 SkTArray<SkPath> fPaths; 216 SkTArray<SkPath> fPaths;
213 typedef GM INHERITED; 217 typedef GM INHERITED;
214 }; 218 };
215 219
216 ////////////////////////////////////////////////////////////////////////////// 220 //////////////////////////////////////////////////////////////////////////////
217 221
218 static GM* MyFactory(void*) { return new HairlinesGM; } 222 static GM* MyFactory(void*) { return new HairlinesGM; }
219 static GMRegistry reg(MyFactory); 223 static GMRegistry reg(MyFactory);
220 224
221 } 225 }
OLDNEW
« no previous file with comments | « gm/gradtext.cpp ('k') | gm/hairmodes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698