diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-26 17:50:08 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-26 17:50:08 +0000 |
commit | a47ac2bcc228981bd9f04508ad0894b61704800e (patch) | |
tree | 6a2a79485b810703924654dc2b1abfbb6670d7f9 /include/utils/SkLua.h | |
parent | 335619b26b07ef41c453fd6db80b5508a9e2a90b (diff) |
Add getReducedClipStack to lua canvas
R=reed@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/180283004
git-svn-id: http://skia.googlecode.com/svn/trunk@13594 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/SkLua.h')
-rw-r--r-- | include/utils/SkLua.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/utils/SkLua.h b/include/utils/SkLua.h index f67502a2e8..2f29343d59 100644 --- a/include/utils/SkLua.h +++ b/include/utils/SkLua.h @@ -8,6 +8,7 @@ #ifndef SkLua_DEFINED #define SkLua_DEFINED +#include "SkClipStack.h" #include "SkColor.h" #include "SkScalar.h" #include "SkString.h" @@ -15,7 +16,6 @@ struct lua_State; class SkCanvas; -class SkClipStack; class SkMatrix; class SkPaint; class SkPath; @@ -55,6 +55,10 @@ public: void pushPath(const SkPath&, const char tableKey[] = NULL); void pushCanvas(SkCanvas*, const char tableKey[] = NULL); void pushClipStack(const SkClipStack&, const char tableKey[] = NULL); + void pushClipStackElement(const SkClipStack::Element& element, const char tableKey[] = NULL); + + // This SkCanvas lua methods is declared here to benefit from SkLua's friendship with SkCanvas. + static int lcanvas_getReducedClipStack(lua_State* L); private: lua_State* fL; |