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

Side by Side Diff: samplecode/SampleClip.cpp

Issue 1273613002: Revert of IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « samplecode/SampleCircle.cpp ('k') | samplecode/SampleClipDrawMatch.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 "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkView.h" 9 #include "SkView.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
12 #include "SkDevice.h" 12 #include "SkDevice.h"
13 #include "SkPaint.h" 13 #include "SkPaint.h"
14 #include "SkPath.h"
15 #include "SkRandom.h" 14 #include "SkRandom.h"
16 15
17 #define W 150 16 #define W 150
18 #define H 200 17 #define H 200
19 18
20 static void show_text(SkCanvas* canvas, bool doAA) { 19 static void show_text(SkCanvas* canvas, bool doAA) {
21 SkRandom rand; 20 SkRandom rand;
22 SkPaint paint; 21 SkPaint paint;
23 paint.setAntiAlias(doAA); 22 paint.setAntiAlias(doAA);
24 paint.setLCDRenderText(true); 23 paint.setLCDRenderText(true);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 155 }
157 156
158 private: 157 private:
159 typedef SampleView INHERITED; 158 typedef SampleView INHERITED;
160 }; 159 };
161 160
162 ////////////////////////////////////////////////////////////////////////////// 161 //////////////////////////////////////////////////////////////////////////////
163 162
164 static SkView* MyFactory() { return new ClipView; } 163 static SkView* MyFactory() { return new ClipView; }
165 static SkViewRegister reg(MyFactory); 164 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleCircle.cpp ('k') | samplecode/SampleClipDrawMatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698