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

Side by Side Diff: gm/hairmodes.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/hairlines.cpp ('k') | gm/hittestpath.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 2011 Google Inc. 2 * Copyright 2011 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 "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 SkShader::kRepeat_TileMode, 71 SkShader::kRepeat_TileMode,
72 &m); 72 &m);
73 } 73 }
74 74
75 namespace skiagm { 75 namespace skiagm {
76 76
77 class HairModesGM : public GM { 77 class HairModesGM : public GM {
78 SkPaint fBGPaint; 78 SkPaint fBGPaint;
79 79
80 protected: 80 protected:
81
82 virtual SkString onShortName() SK_OVERRIDE { 81 virtual SkString onShortName() SK_OVERRIDE {
83 return SkString("hairmodes"); 82 return SkString("hairmodes");
84 } 83 }
85 84
86 virtual SkISize onISize() { return make_isize(640, 480); } 85 virtual SkISize onISize() { return make_isize(640, 480); }
87 86
88 virtual void onOnceBeforeDraw() SK_OVERRIDE { 87 virtual void onOnceBeforeDraw() SK_OVERRIDE {
89 fBGPaint.setShader(make_bg_shader())->unref(); 88 fBGPaint.setShader(make_bg_shader())->unref();
90 } 89 }
91 90
(...skipping 24 matching lines...) Expand all
116 canvas->translate(0, dy * 5 / 4); 115 canvas->translate(0, dy * 5 / 4);
117 SkSafeUnref(mode); 116 SkSafeUnref(mode);
118 } 117 }
119 canvas->restore(); 118 canvas->restore();
120 canvas->restore(); 119 canvas->restore();
121 canvas->translate(W * 5 / 4, 0); 120 canvas->translate(W * 5 / 4, 0);
122 } 121 }
123 } 122 }
124 123
125 // disable pdf for now, since it crashes on mac 124 // disable pdf for now, since it crashes on mac
126 virtual uint32_t onGetFlags() const { return kSkipPDF_Flag; } 125 virtual uint32_t onGetFlags() const { return kSkipPDF_Flag | kSkipTiled_ Flag; }
127 126
128 private: 127 private:
129 typedef GM INHERITED; 128 typedef GM INHERITED;
130 }; 129 };
131 130
132 //////////////////////////////////////////////////////////////////////////// // 131 //////////////////////////////////////////////////////////////////////////// //
133 132
134 static GM* MyFactory(void*) { return new HairModesGM; } 133 static GM* MyFactory(void*) { return new HairModesGM; }
135 static GMRegistry reg(MyFactory); 134 static GMRegistry reg(MyFactory);
136 135
137 } 136 }
OLDNEW
« no previous file with comments | « gm/hairlines.cpp ('k') | gm/hittestpath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698