OLD | NEW |
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 | 9 |
10 #include "Resources.h" | 10 #include "Resources.h" |
11 #include "SampleCode.h" | 11 #include "SampleCode.h" |
12 #include "SkAnimTimer.h" | 12 #include "SkAnimTimer.h" |
13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
14 #include "SkInterpolator.h" | 14 #include "SkInterpolator.h" |
| 15 #include "SkPath.h" |
15 #include "SkSurface.h" | 16 #include "SkSurface.h" |
16 #include "SkRandom.h" | 17 #include "SkRandom.h" |
17 #include "SkTime.h" | 18 #include "SkTime.h" |
18 | 19 |
19 static SkSurface* make_surface(SkCanvas* canvas, const SkImageInfo& info) { | 20 static SkSurface* make_surface(SkCanvas* canvas, const SkImageInfo& info) { |
20 SkSurface* surface = canvas->newSurface(info); | 21 SkSurface* surface = canvas->newSurface(info); |
21 if (!surface) { | 22 if (!surface) { |
22 surface = SkSurface::NewRaster(info); | 23 surface = SkSurface::NewRaster(info); |
23 } | 24 } |
24 return surface; | 25 return surface; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 288 } |
288 | 289 |
289 private: | 290 private: |
290 typedef SampleView INHERITED; | 291 typedef SampleView INHERITED; |
291 }; | 292 }; |
292 | 293 |
293 ////////////////////////////////////////////////////////////////////////////// | 294 ////////////////////////////////////////////////////////////////////////////// |
294 | 295 |
295 static SkView* MyFactory() { return new FilterQualityView; } | 296 static SkView* MyFactory() { return new FilterQualityView; } |
296 static SkViewRegister reg(MyFactory); | 297 static SkViewRegister reg(MyFactory); |
OLD | NEW |