OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |