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

Side by Side Diff: gm/fatpathfill.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/drrect.cpp ('k') | gm/filltypes.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 2012 Google Inc. 2 * Copyright 2012 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 draw_pixel_centers(canvas); 51 draw_pixel_centers(canvas);
52 } 52 }
53 53
54 class FatPathFillGM : public skiagm::GM { 54 class FatPathFillGM : public skiagm::GM {
55 public: 55 public:
56 FatPathFillGM() {} 56 FatPathFillGM() {}
57 57
58 protected: 58 protected:
59 virtual uint32_t onGetFlags() const SK_OVERRIDE {
60 return kSkipTiled_Flag;
61 }
62
59 virtual SkString onShortName() { 63 virtual SkString onShortName() {
60 return SkString("fatpathfill"); 64 return SkString("fatpathfill");
61 } 65 }
62 66
63 virtual SkISize onISize() { 67 virtual SkISize onISize() {
64 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP); 68 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP);
65 } 69 }
66 70
67 virtual void onDraw(SkCanvas* canvas) { 71 virtual void onDraw(SkCanvas* canvas) {
68 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H)); 72 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H));
(...skipping 15 matching lines...) Expand all
84 } 88 }
85 } 89 }
86 90
87 private: 91 private:
88 typedef skiagm::GM INHERITED; 92 typedef skiagm::GM INHERITED;
89 }; 93 };
90 94
91 /////////////////////////////////////////////////////////////////////////////// 95 ///////////////////////////////////////////////////////////////////////////////
92 96
93 DEF_GM(return new FatPathFillGM;) 97 DEF_GM(return new FatPathFillGM;)
OLDNEW
« no previous file with comments | « gm/drrect.cpp ('k') | gm/filltypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698