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

Side by Side Diff: gm/colormatrix.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/coloremoji.cpp ('k') | gm/complexclip.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 "SkColorMatrixFilter.h" 9 #include "SkColorMatrixFilter.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ColorMatrixGM() { 51 ColorMatrixGM() {
52 this->setBGColor(0xFF808080); 52 this->setBGColor(0xFF808080);
53 } 53 }
54 54
55 protected: 55 protected:
56 virtual SkString onShortName() { 56 virtual SkString onShortName() {
57 return SkString("colormatrix"); 57 return SkString("colormatrix");
58 } 58 }
59 59
60 virtual SkISize onISize() { 60 virtual SkISize onISize() {
61 return make_isize(WIDTH, HEIGHT); 61 return SkISize::Make(WIDTH, HEIGHT);
62 } 62 }
63 63
64 SkBitmap createSolidBitmap(int width, int height) { 64 SkBitmap createSolidBitmap(int width, int height) {
65 SkBitmap bm; 65 SkBitmap bm;
66 bm.allocN32Pixels(width, height); 66 bm.allocN32Pixels(width, height);
67 SkCanvas canvas(bm); 67 SkCanvas canvas(bm);
68 canvas.clear(0x0); 68 canvas.clear(0x0);
69 for (int y = 0; y < height; ++y) { 69 for (int y = 0; y < height; ++y) {
70 for (int x = 0; x < width; ++x) { 70 for (int x = 0; x < width; ++x) {
71 SkPaint paint; 71 SkPaint paint;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 SkBitmap fTransparentBitmap; 166 SkBitmap fTransparentBitmap;
167 typedef GM INHERITED; 167 typedef GM INHERITED;
168 }; 168 };
169 169
170 ////////////////////////////////////////////////////////////////////////////// 170 //////////////////////////////////////////////////////////////////////////////
171 171
172 static GM* MyFactory(void*) { return new ColorMatrixGM; } 172 static GM* MyFactory(void*) { return new ColorMatrixGM; }
173 static GMRegistry reg(MyFactory); 173 static GMRegistry reg(MyFactory);
174 174
175 } 175 }
OLDNEW
« no previous file with comments | « gm/coloremoji.cpp ('k') | gm/complexclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698