OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkPictureImageFilter.h" | 10 #include "SkPictureImageFilter.h" |
| 11 #include "SkPictureRecorder.h" |
11 | 12 |
12 // This GM exercises the SkPictureImageFilter ImageFilter class. | 13 // This GM exercises the SkPictureImageFilter ImageFilter class. |
13 | 14 |
14 class PictureImageFilterGM : public skiagm::GM { | 15 class PictureImageFilterGM : public skiagm::GM { |
15 public: | 16 public: |
16 PictureImageFilterGM() { | 17 PictureImageFilterGM() { |
17 } | 18 } |
18 | 19 |
19 protected: | 20 protected: |
20 virtual SkString onShortName() SK_OVERRIDE { | 21 virtual SkString onShortName() SK_OVERRIDE { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 } | 84 } |
84 | 85 |
85 private: | 86 private: |
86 SkAutoTUnref<SkPicture> fPicture; | 87 SkAutoTUnref<SkPicture> fPicture; |
87 typedef GM INHERITED; | 88 typedef GM INHERITED; |
88 }; | 89 }; |
89 | 90 |
90 /////////////////////////////////////////////////////////////////////////////// | 91 /////////////////////////////////////////////////////////////////////////////// |
91 | 92 |
92 DEF_GM( return new PictureImageFilterGM; ) | 93 DEF_GM( return new PictureImageFilterGM; ) |
OLD | NEW |