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

Side by Side Diff: gm/shaderbounds.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/selftest.cpp ('k') | gm/shadertext.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 2012 Google Inc. 2 * Copyright 2012 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 #include "gm.h" 7 #include "gm.h"
8 #include "SkGradientShader.h" 8 #include "SkGradientShader.h"
9 9
10 namespace skiagm { 10 namespace skiagm {
(...skipping 24 matching lines...) Expand all
35 35
36 protected: 36 protected:
37 virtual uint32_t onGetFlags() const SK_OVERRIDE { 37 virtual uint32_t onGetFlags() const SK_OVERRIDE {
38 return kSkipTiled_Flag; 38 return kSkipTiled_Flag;
39 } 39 }
40 40
41 SkString onShortName() { 41 SkString onShortName() {
42 return fName; 42 return fName;
43 } 43 }
44 44
45 virtual SkISize onISize() { return make_isize(320, 240); } 45 virtual SkISize onISize() { return SkISize::Make(320, 240); }
46 46
47 virtual SkMatrix onGetInitialTransform() const SK_OVERRIDE { 47 virtual SkMatrix onGetInitialTransform() const SK_OVERRIDE {
48 SkMatrix result; 48 SkMatrix result;
49 SkScalar scale = 0.8f; 49 SkScalar scale = 0.8f;
50 result.setScale(scale, scale); 50 result.setScale(scale, scale);
51 result.postTranslate(SkIntToScalar(7), SkIntToScalar(23)); 51 result.postTranslate(SkIntToScalar(7), SkIntToScalar(23));
52 return result; 52 return result;
53 } 53 }
54 54
55 virtual void onDraw(SkCanvas* canvas) { 55 virtual void onDraw(SkCanvas* canvas) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 }; 101 };
102 102
103 /////////////////////////////////////////////////////////////////////////////// 103 ///////////////////////////////////////////////////////////////////////////////
104 104
105 static GM* MyFactory(void*) { 105 static GM* MyFactory(void*) {
106 return new ShaderBoundsGM(MakeLinear, SkString("shaderbounds_linear")); 106 return new ShaderBoundsGM(MakeLinear, SkString("shaderbounds_linear"));
107 } 107 }
108 static GMRegistry reg(MyFactory); 108 static GMRegistry reg(MyFactory);
109 109
110 } 110 }
OLDNEW
« no previous file with comments | « gm/selftest.cpp ('k') | gm/shadertext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698