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

Side by Side Diff: gm/imageblur.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/imagealphathreshold.cpp ('k') | gm/imageblurtiled.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 "SkBlurImageFilter.h" 9 #include "SkBlurImageFilter.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 14 matching lines...) Expand all
25 protected: 25 protected:
26 virtual uint32_t onGetFlags() const SK_OVERRIDE { 26 virtual uint32_t onGetFlags() const SK_OVERRIDE {
27 return kSkipTiled_Flag; 27 return kSkipTiled_Flag;
28 } 28 }
29 29
30 virtual SkString onShortName() { 30 virtual SkString onShortName() {
31 return fName; 31 return fName;
32 } 32 }
33 33
34 virtual SkISize onISize() { 34 virtual SkISize onISize() {
35 return make_isize(WIDTH, HEIGHT); 35 return SkISize::Make(WIDTH, HEIGHT);
36 } 36 }
37 37
38 virtual void onDraw(SkCanvas* canvas) { 38 virtual void onDraw(SkCanvas* canvas) {
39 SkPaint paint; 39 SkPaint paint;
40 paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref (); 40 paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref ();
41 canvas->saveLayer(NULL, &paint); 41 canvas->saveLayer(NULL, &paint);
42 const char* str = "The quick brown fox jumped over the lazy dog."; 42 const char* str = "The quick brown fox jumped over the lazy dog.";
43 43
44 SkRandom rand; 44 SkRandom rand;
45 SkPaint textPaint; 45 SkPaint textPaint;
(...skipping 19 matching lines...) Expand all
65 65
66 ////////////////////////////////////////////////////////////////////////////// 66 //////////////////////////////////////////////////////////////////////////////
67 67
68 static GM* MyFactory1(void*) { return new ImageBlurGM(24.0f, 0.0f, ""); } 68 static GM* MyFactory1(void*) { return new ImageBlurGM(24.0f, 0.0f, ""); }
69 static GMRegistry reg1(MyFactory1); 69 static GMRegistry reg1(MyFactory1);
70 70
71 static GM* MyFactory2(void*) { return new ImageBlurGM(80.0f, 80.0f, "_large"); } 71 static GM* MyFactory2(void*) { return new ImageBlurGM(80.0f, 80.0f, "_large"); }
72 static GMRegistry reg2(MyFactory2); 72 static GMRegistry reg2(MyFactory2);
73 73
74 } 74 }
OLDNEW
« no previous file with comments | « gm/imagealphathreshold.cpp ('k') | gm/imageblurtiled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698