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

Side by Side Diff: gm/gradientDirtyLaundry.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/gm.h ('k') | gm/gradients_no_texture.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 2013 Google Inc. 3 * Copyright 2013 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 "SkGradientShader.h" 9 #include "SkGradientShader.h"
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 GradientsGM() { 68 GradientsGM() {
69 this->setBGColor(0xFFDDDDDD); 69 this->setBGColor(0xFFDDDDDD);
70 } 70 }
71 71
72 protected: 72 protected:
73 virtual uint32_t onGetFlags() const SK_OVERRIDE { 73 virtual uint32_t onGetFlags() const SK_OVERRIDE {
74 return kSkipTiled_Flag; 74 return kSkipTiled_Flag;
75 } 75 }
76 76
77 SkString onShortName() SK_OVERRIDE { return SkString("gradient_dirty_laundry "); } 77 SkString onShortName() SK_OVERRIDE { return SkString("gradient_dirty_laundry "); }
78 virtual SkISize onISize() SK_OVERRIDE { return make_isize(640, 615); } 78 virtual SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 615); }
79 79
80 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 80 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
81 SkPoint pts[2] = { { 0, 0 }, 81 SkPoint pts[2] = { { 0, 0 },
82 { SkIntToScalar(100), SkIntToScalar(100) } 82 { SkIntToScalar(100), SkIntToScalar(100) }
83 }; 83 };
84 SkShader::TileMode tm = SkShader::kClamp_TileMode; 84 SkShader::TileMode tm = SkShader::kClamp_TileMode;
85 SkRect r = { 0, 0, SkIntToScalar(100), SkIntToScalar(100) }; 85 SkRect r = { 0, 0, SkIntToScalar(100), SkIntToScalar(100) };
86 SkPaint paint; 86 SkPaint paint;
87 paint.setAntiAlias(true); 87 paint.setAntiAlias(true);
88 88
(...skipping 12 matching lines...) Expand all
101 } 101 }
102 102
103 private: 103 private:
104 typedef GM INHERITED; 104 typedef GM INHERITED;
105 }; 105 };
106 106
107 /////////////////////////////////////////////////////////////////////////////// 107 ///////////////////////////////////////////////////////////////////////////////
108 108
109 static GM* MyFactory(void*) { return new GradientsGM; } 109 static GM* MyFactory(void*) { return new GradientsGM; }
110 static GMRegistry reg(MyFactory); 110 static GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/gm.h ('k') | gm/gradients_no_texture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698