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