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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/effects/SkLerpXfermode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkXfermode.h
diff --git a/include/core/SkXfermode.h b/include/core/SkXfermode.h
index 91268ab5f127a5ec37cf8102b4c8dafe27706839..748c271aeb3c4e38a6d48981daa1c2665acfdc6d 100644
--- a/include/core/SkXfermode.h
+++ b/include/core/SkXfermode.h
@@ -12,6 +12,7 @@
#include "SkFlattenable.h"
#include "SkColor.h"
+#include "SkString.h"
class GrFragmentProcessor;
class GrTexture;
@@ -241,6 +242,12 @@ protected:
*/
virtual SkPMColor xferColor(SkPMColor src, SkPMColor dst) const;
+ /**
+ * luaGetName should only be used for lua-based .skp scraping.
+ */
+ friend class SkLuaAccess;
+ virtual void luaGetName(SkString* name) const { name->set("Unknown"); }
reed1 2016/01/21 14:39:11 can this be private?
+
private:
enum {
kModeCount = kLastMode + 1
« 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