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

Side by Side Diff: gm/tilemodes.cpp

Issue 2209533004: spin off easy stuff from Herb's windows GN CL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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/shadows.cpp ('k') | gm/tilemodes_scaled.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 #include "gm.h" 7 #include "gm.h"
8 #include "SkColorFilter.h"
9 #include "SkMaskFilter.h"
8 #include "SkPath.h" 10 #include "SkPath.h"
9 #include "SkRegion.h" 11 #include "SkRegion.h"
10 #include "SkShader.h" 12 #include "SkShader.h"
11 #include "SkUtils.h" 13 #include "SkUtils.h"
12 #include "SkColorFilter.h" 14
13 15
14 // effects 16 // effects
15 #include "SkGradientShader.h" 17 #include "SkGradientShader.h"
16 #include "SkBlurDrawLooper.h" 18 #include "SkBlurDrawLooper.h"
17 19
18 static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { 20 static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) {
19 bm->allocPixels(SkImageInfo::Make(w, h, ct, kPremul_SkAlphaType)); 21 bm->allocPixels(SkImageInfo::Make(w, h, ct, kPremul_SkAlphaType));
20 bm->eraseColor(SK_ColorTRANSPARENT); 22 bm->eraseColor(SK_ColorTRANSPARENT);
21 23
22 SkCanvas canvas(*bm); 24 SkCanvas canvas(*bm);
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 private: 254 private:
253 typedef skiagm::GM INHERITED; 255 typedef skiagm::GM INHERITED;
254 }; 256 };
255 257
256 ////////////////////////////////////////////////////////////////////////////// 258 //////////////////////////////////////////////////////////////////////////////
257 259
258 DEF_GM( return new TilingGM(true); ) 260 DEF_GM( return new TilingGM(true); )
259 DEF_GM( return new TilingGM(false); ) 261 DEF_GM( return new TilingGM(false); )
260 DEF_GM( return new Tiling2GM(make_bm, "bitmap"); ) 262 DEF_GM( return new Tiling2GM(make_bm, "bitmap"); )
261 DEF_GM( return new Tiling2GM(make_grad, "gradient"); ) 263 DEF_GM( return new Tiling2GM(make_grad, "gradient"); )
OLDNEW
« no previous file with comments | « gm/shadows.cpp ('k') | gm/tilemodes_scaled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698