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

Side by Side Diff: include/utils/SkLua.h

Issue 196603027: add initial scraper for dashing (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rename pushArray to pushArrayPoint Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/utils/SkLua.cpp » ('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 2013 Google Inc. 2 * Copyright 2013 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 #ifndef SkLua_DEFINED 8 #ifndef SkLua_DEFINED
9 #define SkLua_DEFINED 9 #define SkLua_DEFINED
10 10
(...skipping 27 matching lines...) Expand all
38 lua_State* operator->() const { return fL; } 38 lua_State* operator->() const { return fL; }
39 39
40 bool runCode(const char code[]); 40 bool runCode(const char code[]);
41 bool runCode(const void* code, size_t size); 41 bool runCode(const void* code, size_t size);
42 42
43 void pushBool(bool, const char tableKey[] = NULL); 43 void pushBool(bool, const char tableKey[] = NULL);
44 void pushString(const char[], const char tableKey[] = NULL); 44 void pushString(const char[], const char tableKey[] = NULL);
45 void pushString(const char[], size_t len, const char tableKey[] = NULL); 45 void pushString(const char[], size_t len, const char tableKey[] = NULL);
46 void pushString(const SkString&, const char tableKey[] = NULL); 46 void pushString(const SkString&, const char tableKey[] = NULL);
47 void pushArrayU16(const uint16_t[], int count, const char tableKey[] = NULL) ; 47 void pushArrayU16(const uint16_t[], int count, const char tableKey[] = NULL) ;
48 void pushArrayPoint(const SkPoint[], int count, const char key[] = NULL);
48 void pushColor(SkColor, const char tableKey[] = NULL); 49 void pushColor(SkColor, const char tableKey[] = NULL);
49 void pushU32(uint32_t, const char tableKey[] = NULL); 50 void pushU32(uint32_t, const char tableKey[] = NULL);
50 void pushScalar(SkScalar, const char tableKey[] = NULL); 51 void pushScalar(SkScalar, const char tableKey[] = NULL);
51 void pushRect(const SkRect&, const char tableKey[] = NULL); 52 void pushRect(const SkRect&, const char tableKey[] = NULL);
52 void pushRRect(const SkRRect&, const char tableKey[] = NULL); 53 void pushRRect(const SkRRect&, const char tableKey[] = NULL);
53 void pushMatrix(const SkMatrix&, const char tableKey[] = NULL); 54 void pushMatrix(const SkMatrix&, const char tableKey[] = NULL);
54 void pushPaint(const SkPaint&, const char tableKey[] = NULL); 55 void pushPaint(const SkPaint&, const char tableKey[] = NULL);
55 void pushPath(const SkPath&, const char tableKey[] = NULL); 56 void pushPath(const SkPath&, const char tableKey[] = NULL);
56 void pushCanvas(SkCanvas*, const char tableKey[] = NULL); 57 void pushCanvas(SkCanvas*, const char tableKey[] = NULL);
57 void pushClipStack(const SkClipStack&, const char tableKey[] = NULL); 58 void pushClipStack(const SkClipStack&, const char tableKey[] = NULL);
58 void pushClipStackElement(const SkClipStack::Element& element, const char ta bleKey[] = NULL); 59 void pushClipStackElement(const SkClipStack::Element& element, const char ta bleKey[] = NULL);
59 60
60 // This SkCanvas lua methods is declared here to benefit from SkLua's friend ship with SkCanvas. 61 // This SkCanvas lua methods is declared here to benefit from SkLua's friend ship with SkCanvas.
61 static int lcanvas_getReducedClipStack(lua_State* L); 62 static int lcanvas_getReducedClipStack(lua_State* L);
62 63
63 private: 64 private:
64 lua_State* fL; 65 lua_State* fL;
65 SkString fTermCode; 66 SkString fTermCode;
66 bool fWeOwnL; 67 bool fWeOwnL;
67 }; 68 };
68 69
69 #endif 70 #endif
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkLua.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698