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