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

Side by Side Diff: gm/patheffects.cpp

Issue 281383013: skiagm::make_isize -> SkISize::Make (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/ovals.cpp ('k') | gm/pathopsinverse.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 #include "gm.h" 7 #include "gm.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkPaint.h" 9 #include "SkPaint.h"
10 #include "Sk1DPathEffect.h" 10 #include "Sk1DPathEffect.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 protected: 109 protected:
110 virtual uint32_t onGetFlags() const SK_OVERRIDE { 110 virtual uint32_t onGetFlags() const SK_OVERRIDE {
111 return kSkipTiled_Flag; 111 return kSkipTiled_Flag;
112 } 112 }
113 113
114 SkString onShortName() { 114 SkString onShortName() {
115 return SkString("patheffect"); 115 return SkString("patheffect");
116 } 116 }
117 117
118 SkISize onISize() { return make_isize(800, 600); } 118 SkISize onISize() { return SkISize::Make(800, 600); }
119 119
120 virtual void onDraw(SkCanvas* canvas) { 120 virtual void onDraw(SkCanvas* canvas) {
121 SkPaint paint; 121 SkPaint paint;
122 paint.setAntiAlias(true); 122 paint.setAntiAlias(true);
123 paint.setStyle(SkPaint::kStroke_Style); 123 paint.setStyle(SkPaint::kStroke_Style);
124 124
125 SkPath path; 125 SkPath path;
126 path.moveTo(20, 20); 126 path.moveTo(20, 20);
127 path.lineTo(70, 120); 127 path.lineTo(70, 120);
128 path.lineTo(120, 30); 128 path.lineTo(120, 30);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 private: 165 private:
166 typedef GM INHERITED; 166 typedef GM INHERITED;
167 }; 167 };
168 168
169 ////////////////////////////////////////////////////////////////////////////// 169 //////////////////////////////////////////////////////////////////////////////
170 170
171 static GM* PathEffectFactory(void*) { return new PathEffectGM; } 171 static GM* PathEffectFactory(void*) { return new PathEffectGM; }
172 static GMRegistry regPathEffect(PathEffectFactory); 172 static GMRegistry regPathEffect(PathEffectFactory);
173 173
174 } 174 }
OLDNEW
« no previous file with comments | « gm/ovals.cpp ('k') | gm/pathopsinverse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698