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

Side by Side Diff: gm/aarectmodes.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 | « no previous file | gm/androidfallback.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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 protected: 135 protected:
136 virtual uint32_t onGetFlags() const SK_OVERRIDE { 136 virtual uint32_t onGetFlags() const SK_OVERRIDE {
137 return kSkipTiled_Flag; 137 return kSkipTiled_Flag;
138 } 138 }
139 139
140 virtual SkString onShortName() { 140 virtual SkString onShortName() {
141 return SkString("aarectmodes"); 141 return SkString("aarectmodes");
142 } 142 }
143 143
144 virtual SkISize onISize() { return make_isize(640, 480); } 144 virtual SkISize onISize() { return SkISize::Make(640, 480); }
145 145
146 virtual void onDraw(SkCanvas* canvas) { 146 virtual void onDraw(SkCanvas* canvas) {
147 if (false) { // avoid bit rot, suppress warning 147 if (false) { // avoid bit rot, suppress warning
148 test4(canvas); 148 test4(canvas);
149 } 149 }
150 const SkRect bounds = SkRect::MakeWH(W, H); 150 const SkRect bounds = SkRect::MakeWH(W, H);
151 static const SkAlpha gAlphaValue[] = { 0xFF, 0x88, 0x88 }; 151 static const SkAlpha gAlphaValue[] = { 0xFF, 0x88, 0x88 };
152 152
153 canvas->translate(SkIntToScalar(4), SkIntToScalar(4)); 153 canvas->translate(SkIntToScalar(4), SkIntToScalar(4));
154 154
(...skipping 27 matching lines...) Expand all
182 private: 182 private:
183 typedef GM INHERITED; 183 typedef GM INHERITED;
184 }; 184 };
185 185
186 ////////////////////////////////////////////////////////////////////////////// 186 //////////////////////////////////////////////////////////////////////////////
187 187
188 static GM* MyFactory(void*) { return new AARectModesGM; } 188 static GM* MyFactory(void*) { return new AARectModesGM; }
189 static GMRegistry reg(MyFactory); 189 static GMRegistry reg(MyFactory);
190 190
191 } 191 }
OLDNEW
« no previous file with comments | « no previous file | gm/androidfallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698