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

Side by Side Diff: include/core/SkXfermode.h

Issue 1614923002: Add Lua SkXfermode skp scraping support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/effects/SkLerpXfermode.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkXfermode_DEFINED 10 #ifndef SkXfermode_DEFINED
11 #define SkXfermode_DEFINED 11 #define SkXfermode_DEFINED
12 12
13 #include "SkFlattenable.h" 13 #include "SkFlattenable.h"
14 #include "SkColor.h" 14 #include "SkColor.h"
15 #include "SkString.h"
15 16
16 class GrFragmentProcessor; 17 class GrFragmentProcessor;
17 class GrTexture; 18 class GrTexture;
18 class GrXPFactory; 19 class GrXPFactory;
19 class SkString; 20 class SkString;
20 21
21 /** \class SkXfermode 22 /** \class SkXfermode
22 * 23 *
23 * SkXfermode is the base class for objects that are called to implement custom 24 * SkXfermode is the base class for objects that are called to implement custom
24 * "transfer-modes" in the drawing pipeline. The static function Create(Modes) 25 * "transfer-modes" in the drawing pipeline. The static function Create(Modes)
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 /** The default implementation of xfer32/xfer16/xferA8 in turn call this 235 /** The default implementation of xfer32/xfer16/xferA8 in turn call this
235 method, 1 color at a time (upscaled to a SkPMColor). The default 236 method, 1 color at a time (upscaled to a SkPMColor). The default
236 implementation of this method just returns dst. If performance is 237 implementation of this method just returns dst. If performance is
237 important, your subclass should override xfer32/xfer16/xferA8 directly. 238 important, your subclass should override xfer32/xfer16/xferA8 directly.
238 239
239 This method will not be called directly by the client, so it need not 240 This method will not be called directly by the client, so it need not
240 be implemented if your subclass has overridden xfer32/xfer16/xferA8 241 be implemented if your subclass has overridden xfer32/xfer16/xferA8
241 */ 242 */
242 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const; 243 virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const;
243 244
245 /**
246 * luaGetName should only be used for lua-based .skp scraping.
247 */
248 friend class SkLuaAccess;
249 virtual void luaGetName(SkString* name) const { name->set("Unknown"); }
reed1 2016/01/21 14:39:11 can this be private?
250
244 private: 251 private:
245 enum { 252 enum {
246 kModeCount = kLastMode + 1 253 kModeCount = kLastMode + 1
247 }; 254 };
248 255
249 typedef SkFlattenable INHERITED; 256 typedef SkFlattenable INHERITED;
250 }; 257 };
251 258
252 #endif 259 #endif
OLDNEW
« no previous file with comments | « no previous file | include/effects/SkLerpXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698