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

Side by Side Diff: samplecode/SamplePictFile.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/SampleLines.cpp ('k') | samplecode/SamplePoints.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 "SkDumpCanvas.h" 9 #include "SkDumpCanvas.h"
10 #include "SkView.h" 10 #include "SkView.h"
(...skipping 10 matching lines...) Expand all
21 #include "SkShader.h" 21 #include "SkShader.h"
22 #include "SkUtils.h" 22 #include "SkUtils.h"
23 #include "SkColorPriv.h" 23 #include "SkColorPriv.h"
24 #include "SkColorFilter.h" 24 #include "SkColorFilter.h"
25 #include "SkTime.h" 25 #include "SkTime.h"
26 #include "SkTypeface.h" 26 #include "SkTypeface.h"
27 #include "SkXfermode.h" 27 #include "SkXfermode.h"
28 28
29 #include "SkStream.h" 29 #include "SkStream.h"
30 #include "SkSurface.h" 30 #include "SkSurface.h"
31 #include "SkXMLParser.h"
32 31
33 #include "SkGlyphCache.h" 32 #include "SkGlyphCache.h"
34 33
35 #include "SkDrawFilter.h" 34 #include "SkDrawFilter.h"
36 class SkCounterDrawFilter : public SkDrawFilter { 35 class SkCounterDrawFilter : public SkDrawFilter {
37 public: 36 public:
38 SkCounterDrawFilter(int count) : fCount(count) {} 37 SkCounterDrawFilter(int count) : fCount(count) {}
39 38
40 bool filter(SkPaint*, Type t) override { 39 bool filter(SkPaint*, Type t) override {
41 return --fCount >= 0; 40 return --fCount >= 0;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 SampleView* CreateSamplePictFileView(const char filename[]) { 213 SampleView* CreateSamplePictFileView(const char filename[]) {
215 return new PictFileView(filename); 214 return new PictFileView(filename);
216 } 215 }
217 216
218 ////////////////////////////////////////////////////////////////////////////// 217 //////////////////////////////////////////////////////////////////////////////
219 218
220 #if 0 219 #if 0
221 static SkView* MyFactory() { return new PictFileView; } 220 static SkView* MyFactory() { return new PictFileView; }
222 static SkViewRegister reg(MyFactory); 221 static SkViewRegister reg(MyFactory);
223 #endif 222 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleLines.cpp ('k') | samplecode/SamplePoints.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698