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

Side by Side Diff: gm/convexpolyeffect.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/convexpolyclip.cpp ('k') | gm/copyTo4444.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 2014 Google Inc. 3 * Copyright 2014 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 8
9 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
(...skipping 26 matching lines...) Expand all
37 ConvexPolyEffect() { 37 ConvexPolyEffect() {
38 this->setBGColor(0xFFFFFFFF); 38 this->setBGColor(0xFFFFFFFF);
39 } 39 }
40 40
41 protected: 41 protected:
42 virtual SkString onShortName() SK_OVERRIDE { 42 virtual SkString onShortName() SK_OVERRIDE {
43 return SkString("convex_poly_effect"); 43 return SkString("convex_poly_effect");
44 } 44 }
45 45
46 virtual SkISize onISize() SK_OVERRIDE { 46 virtual SkISize onISize() SK_OVERRIDE {
47 return make_isize(720, 800); 47 return SkISize::Make(720, 800);
48 } 48 }
49 49
50 virtual uint32_t onGetFlags() const SK_OVERRIDE { 50 virtual uint32_t onGetFlags() const SK_OVERRIDE {
51 // This is a GPU-specific GM. 51 // This is a GPU-specific GM.
52 return kGPUOnly_Flag; 52 return kGPUOnly_Flag;
53 } 53 }
54 54
55 virtual void onOnceBeforeDraw() SK_OVERRIDE { 55 virtual void onOnceBeforeDraw() SK_OVERRIDE {
56 SkPath tri; 56 SkPath tri;
57 tri.moveTo(5.f, 5.f); 57 tri.moveTo(5.f, 5.f);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 SkTLList<SkPath> fPaths; 229 SkTLList<SkPath> fPaths;
230 SkTLList<SkRect> fRects; 230 SkTLList<SkRect> fRects;
231 231
232 typedef GM INHERITED; 232 typedef GM INHERITED;
233 }; 233 };
234 234
235 DEF_GM( return SkNEW(ConvexPolyEffect); ) 235 DEF_GM( return SkNEW(ConvexPolyEffect); )
236 } 236 }
237 237
238 #endif 238 #endif
OLDNEW
« no previous file with comments | « gm/convexpolyclip.cpp ('k') | gm/copyTo4444.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698