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

Side by Side Diff: samplecode/SampleText.cpp

Issue 1737383002: remove xmlparser includes from samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/SamplePoints.cpp ('k') | samplecode/SampleXfermodesBlur.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 "SkReadBuffer.h" 11 #include "SkReadBuffer.h"
12 #include "SkWriteBuffer.h" 12 #include "SkWriteBuffer.h"
13 #include "SkGradientShader.h" 13 #include "SkGradientShader.h"
14 #include "SkGraphics.h" 14 #include "SkGraphics.h"
15 #include "SkImageDecoder.h" 15 #include "SkImageDecoder.h"
16 #include "SkPath.h" 16 #include "SkPath.h"
17 #include "SkRandom.h" 17 #include "SkRandom.h"
18 #include "SkRegion.h" 18 #include "SkRegion.h"
19 #include "SkShader.h" 19 #include "SkShader.h"
20 #include "SkUtils.h" 20 #include "SkUtils.h"
21 #include "SkColorPriv.h" 21 #include "SkColorPriv.h"
22 #include "SkColorFilter.h" 22 #include "SkColorFilter.h"
23 #include "SkTime.h" 23 #include "SkTime.h"
24 #include "SkTypeface.h" 24 #include "SkTypeface.h"
25 #include "SkXfermode.h" 25 #include "SkXfermode.h"
26 26
27 #include "SkStream.h" 27 #include "SkStream.h"
28 #include "SkXMLParser.h"
29 28
30 static const struct { 29 static const struct {
31 const char* fName; 30 const char* fName;
32 uint32_t fFlags; 31 uint32_t fFlags;
33 bool fFlushCache; 32 bool fFlushCache;
34 } gHints[] = { 33 } gHints[] = {
35 { "Linear", SkPaint::kLinearText_Flag, false }, 34 { "Linear", SkPaint::kLinearText_Flag, false },
36 { "Normal", 0, true }, 35 { "Normal", 0, true },
37 { "Subpixel", SkPaint::kSubpixelText_Flag, true } 36 { "Subpixel", SkPaint::kSubpixelText_Flag, true }
38 }; 37 };
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 int fHints; 162 int fHints;
164 SkScalar fClickX; 163 SkScalar fClickX;
165 164
166 typedef SampleView INHERITED; 165 typedef SampleView INHERITED;
167 }; 166 };
168 167
169 ////////////////////////////////////////////////////////////////////////////// 168 //////////////////////////////////////////////////////////////////////////////
170 169
171 static SkView* MyFactory() { return new TextSpeedView; } 170 static SkView* MyFactory() { return new TextSpeedView; }
172 static SkViewRegister reg(MyFactory); 171 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SamplePoints.cpp ('k') | samplecode/SampleXfermodesBlur.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698