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 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkData.h" | 10 #include "SkData.h" |
11 #include "SkDecodingImageGenerator.h" | 11 #include "SkDecodingImageGenerator.h" |
12 #include "SkDiscardableMemoryPool.h" | 12 #include "SkDiscardableMemoryPool.h" |
13 #include "SkDiscardablePixelRef.h" | 13 #include "SkDiscardablePixelRef.h" |
14 #include "SkImageDecoder.h" | 14 #include "SkImageDecoder.h" |
15 #include "SkImageGenerator.h" | 15 #include "SkImageGeneratorPriv.h" |
16 #include "SkOSFile.h" | 16 #include "SkOSFile.h" |
17 #include "SkStream.h" | 17 #include "SkStream.h" |
18 | 18 |
19 namespace skiagm { | 19 namespace skiagm { |
20 | 20 |
21 /** | 21 /** |
22 * Draw a PNG created by SkBitmapFactory. | 22 * Draw a PNG created by SkBitmapFactory. |
23 */ | 23 */ |
24 class FactoryGM : public GM { | 24 class FactoryGM : public GM { |
25 public: | 25 public: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 typedef GM INHERITED; | 66 typedef GM INHERITED; |
67 }; | 67 }; |
68 | 68 |
69 ////////////////////////////////////////////////////////////////////////////// | 69 ////////////////////////////////////////////////////////////////////////////// |
70 | 70 |
71 static GM* MyFactory(void*) { return new FactoryGM; } | 71 static GM* MyFactory(void*) { return new FactoryGM; } |
72 static GMRegistry reg(MyFactory); | 72 static GMRegistry reg(MyFactory); |
73 | 73 |
74 } // namespace skiagm | 74 } // namespace skiagm |
OLD | NEW |