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

Side by Side Diff: gm/complexclip.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/colormatrix.cpp ('k') | gm/complexclip2.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 //#include "SkParsePath.h" 10 //#include "SkParsePath.h"
(...skipping 24 matching lines...) Expand all
35 35
36 36
37 SkString onShortName() { 37 SkString onShortName() {
38 SkString str; 38 SkString str;
39 str.printf("complexclip_%s%s", 39 str.printf("complexclip_%s%s",
40 fDoAAClip ? "aa" : "bw", 40 fDoAAClip ? "aa" : "bw",
41 fDoSaveLayer ? "_layer" : ""); 41 fDoSaveLayer ? "_layer" : "");
42 return str; 42 return str;
43 } 43 }
44 44
45 SkISize onISize() { return make_isize(970, 780); } 45 SkISize onISize() { return SkISize::Make(970, 780); }
46 46
47 virtual void onDraw(SkCanvas* canvas) { 47 virtual void onDraw(SkCanvas* canvas) {
48 SkPath path; 48 SkPath path;
49 path.moveTo(SkIntToScalar(0), SkIntToScalar(50)); 49 path.moveTo(SkIntToScalar(0), SkIntToScalar(50));
50 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0)); 50 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0));
51 path.lineTo(SkIntToScalar(175), SkIntToScalar(0)); 51 path.lineTo(SkIntToScalar(175), SkIntToScalar(0));
52 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25)); 52 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25));
53 path.lineTo(SkIntToScalar(200), SkIntToScalar(150)); 53 path.lineTo(SkIntToScalar(200), SkIntToScalar(150));
54 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200)); 54 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200));
55 path.lineTo(SkIntToScalar(0), SkIntToScalar(200)); 55 path.lineTo(SkIntToScalar(0), SkIntToScalar(200));
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // aliased and anti-aliased w/ a layer 192 // aliased and anti-aliased w/ a layer
193 static GM* gFact2(void*) { return new ComplexClipGM(false, true); } 193 static GM* gFact2(void*) { return new ComplexClipGM(false, true); }
194 static GM* gFact3(void*) { return new ComplexClipGM(true, true); } 194 static GM* gFact3(void*) { return new ComplexClipGM(true, true); }
195 195
196 static GMRegistry gReg0(gFact0); 196 static GMRegistry gReg0(gFact0);
197 static GMRegistry gReg1(gFact1); 197 static GMRegistry gReg1(gFact1);
198 static GMRegistry gReg2(gFact2); 198 static GMRegistry gReg2(gFact2);
199 static GMRegistry gReg3(gFact3); 199 static GMRegistry gReg3(gFact3);
200 200
201 } 201 }
OLDNEW
« no previous file with comments | « gm/colormatrix.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698