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

Side by Side Diff: gm/drawminibitmaprect.cpp

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 years, 6 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/drawbitmaprect.cpp ('k') | include/core/SkMath.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
11 #include "SkImage.h" 11 #include "SkImage.h"
12 #include "SkMathPriv.h"
12 #include "SkRandom.h" 13 #include "SkRandom.h"
13 #include "SkShader.h" 14 #include "SkShader.h"
14 #include "SkSurface.h" 15 #include "SkSurface.h"
15 16
16 static sk_sp<SkImage> makebm(SkCanvas* caller, int w, int h) { 17 static sk_sp<SkImage> makebm(SkCanvas* caller, int w, int h) {
17 SkImageInfo info = SkImageInfo::MakeN32Premul(w, h); 18 SkImageInfo info = SkImageInfo::MakeN32Premul(w, h);
18 auto surface(caller->makeSurface(info)); 19 auto surface(caller->makeSurface(info));
19 if (nullptr == surface) { 20 if (nullptr == surface) {
20 surface = SkSurface::MakeRaster(info); 21 surface = SkSurface::MakeRaster(info);
21 } 22 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 private: 134 private:
134 bool fAA; 135 bool fAA;
135 sk_sp<SkImage> fImage; 136 sk_sp<SkImage> fImage;
136 SkString fName; 137 SkString fName;
137 138
138 typedef skiagm::GM INHERITED; 139 typedef skiagm::GM INHERITED;
139 }; 140 };
140 141
141 DEF_GM( return new DrawMiniBitmapRectGM(true); ) 142 DEF_GM( return new DrawMiniBitmapRectGM(true); )
142 DEF_GM( return new DrawMiniBitmapRectGM(false); ) 143 DEF_GM( return new DrawMiniBitmapRectGM(false); )
OLDNEW
« no previous file with comments | « gm/drawbitmaprect.cpp ('k') | include/core/SkMath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698