Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: gm/pixelxorxfermode.cpp

Issue 1645633003: Hide SkPixelXorXfermode from Chrome (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/core/SkPostConfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPostConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698