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

Side by Side Diff: gm/poly2poly.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/points.cpp ('k') | gm/polygons.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 9
10 class SkJSCanvas { 10 class SkJSCanvas {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ctx.restore(); 171 ctx.restore();
172 172
173 ctx.fillText("As Expected - line width 1", 10, 10); 173 ctx.fillText("As Expected - line width 1", 10, 10);
174 } 174 }
175 175
176 class Poly2PolyGM : public skiagm::GM { 176 class Poly2PolyGM : public skiagm::GM {
177 public: 177 public:
178 Poly2PolyGM() {} 178 Poly2PolyGM() {}
179 179
180 protected: 180 protected:
181 virtual uint32_t onGetFlags() const SK_OVERRIDE {
182 return kSkipTiled_Flag;
183 }
184
181 virtual SkString onShortName() SK_OVERRIDE { 185 virtual SkString onShortName() SK_OVERRIDE {
182 return SkString("poly2poly"); 186 return SkString("poly2poly");
183 } 187 }
184 188
185 virtual SkISize onISize() SK_OVERRIDE { 189 virtual SkISize onISize() SK_OVERRIDE {
186 return SkISize::Make(835, 840); 190 return SkISize::Make(835, 840);
187 } 191 }
188 192
189 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], 193 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[],
190 const int idst[], int count) { 194 const int idst[], int count) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 canvas->restore(); 266 canvas->restore();
263 } 267 }
264 268
265 private: 269 private:
266 typedef skiagm::GM INHERITED; 270 typedef skiagm::GM INHERITED;
267 }; 271 };
268 272
269 ////////////////////////////////////////////////////////////////////////////// 273 //////////////////////////////////////////////////////////////////////////////
270 274
271 DEF_GM( return new Poly2PolyGM; ) 275 DEF_GM( return new Poly2PolyGM; )
OLDNEW
« no previous file with comments | « gm/points.cpp ('k') | gm/polygons.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698