OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkCanvas.h" | 11 #include "SkCanvas.h" |
12 #include "SkData.h" | 12 #include "SkData.h" |
13 #include "SkDiscardableMemoryPool.h" | 13 #include "SkDiscardableMemoryPool.h" |
14 #include "SkDiscardablePixelRef.h" | 14 #include "SkDiscardablePixelRef.h" |
| 15 #include "SkImageDecoder.h" |
15 #include "SkImageGeneratorPriv.h" | 16 #include "SkImageGeneratorPriv.h" |
16 #include "SkOSFile.h" | 17 #include "SkOSFile.h" |
17 #include "SkStream.h" | 18 #include "SkStream.h" |
18 | 19 |
19 namespace skiagm { | 20 namespace skiagm { |
20 | 21 |
21 /** | 22 /** |
22 * Draw a PNG created by SkBitmapFactory. | 23 * Draw a PNG created by SkBitmapFactory. |
23 */ | 24 */ |
24 class FactoryGM : public GM { | 25 class FactoryGM : public GM { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 59 |
59 typedef GM INHERITED; | 60 typedef GM INHERITED; |
60 }; | 61 }; |
61 | 62 |
62 ////////////////////////////////////////////////////////////////////////////// | 63 ////////////////////////////////////////////////////////////////////////////// |
63 | 64 |
64 static GM* MyFactory(void*) { return new FactoryGM; } | 65 static GM* MyFactory(void*) { return new FactoryGM; } |
65 static GMRegistry reg(MyFactory); | 66 static GMRegistry reg(MyFactory); |
66 | 67 |
67 } // namespace skiagm | 68 } // namespace skiagm |
OLD | NEW |