OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkColorShader.h" | 10 #include "SkColorShader.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 surface->getCanvas()->discard(); | 80 surface->getCanvas()->discard(); |
81 surface->unref(); | 81 surface->unref(); |
82 } | 82 } |
83 | 83 |
84 private: | 84 private: |
85 typedef GM INHERITED; | 85 typedef GM INHERITED; |
86 }; | 86 }; |
87 | 87 |
88 ////////////////////////////////////////////////////////////////////////////// | 88 ////////////////////////////////////////////////////////////////////////////// |
89 | 89 |
90 DEF_GM( return SkNEW(DiscardGM); ) | 90 DEF_GM(return new DiscardGM;) |
91 | 91 |
92 } // end namespace | 92 } // end namespace |
93 | 93 |
94 #endif | 94 #endif |
OLD | NEW |