OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 "Resources.h" | 9 #include "Resources.h" |
10 | 10 |
11 #include "SkImageDecoder.h" | 11 #include "SkImageDecoder.h" |
12 #include "SkPixelXorXfermode.h" | 12 #include "SkPixelXorXfermode.h" |
13 #include "SkStream.h" | 13 #include "SkStream.h" |
14 | 14 |
15 #if SK_INCLUDE_DEPRECATED_XFERMODES | |
f(malita)
2016/01/27 20:02:04
Nit: would it make more sense to use SK_SUPPORT_LE
f(malita)
2016/01/27 20:44:45
Per conversation, LGTM.
| |
16 | |
15 class PixelXorXfermodeGM : public skiagm::GM { | 17 class PixelXorXfermodeGM : public skiagm::GM { |
16 public: | 18 public: |
17 PixelXorXfermodeGM() { } | 19 PixelXorXfermodeGM() { } |
18 | 20 |
19 protected: | 21 protected: |
20 SkString onShortName() override { | 22 SkString onShortName() override { |
21 return SkString("pixelxorxfermode"); | 23 return SkString("pixelxorxfermode"); |
22 } | 24 } |
23 | 25 |
24 SkISize onISize() override { return SkISize::Make(512, 512); } | 26 SkISize onISize() override { return SkISize::Make(512, 512); } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 | 86 |
85 private: | 87 private: |
86 SkBitmap fBM; | 88 SkBitmap fBM; |
87 | 89 |
88 typedef GM INHERITED; | 90 typedef GM INHERITED; |
89 }; | 91 }; |
90 | 92 |
91 ////////////////////////////////////////////////////////////////////////////// | 93 ////////////////////////////////////////////////////////////////////////////// |
92 | 94 |
93 DEF_GM(return new PixelXorXfermodeGM;) | 95 DEF_GM(return new PixelXorXfermodeGM;) |
96 | |
97 #endif | |
OLD | NEW |