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

Side by Side Diff: skia/animator/SkScriptRuntime.h

Issue 113827: Remove the remainder of the skia source code from the Chromium repo.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « skia/animator/SkScriptDecompile.cpp ('k') | skia/animator/SkScriptRuntime.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef SkScriptRuntime_DEFINED
2 #define SkScriptRuntime_DEFINED
3
4 #include "SkOperand2.h"
5 #include "SkTDArray_Experimental.h"
6 #include "SkTDStack.h"
7
8 class SkScriptCallBack;
9
10 typedef SkLongArray(SkString*) SkTDStringArray;
11 typedef SkLongArray(SkScriptCallBack*) SkTDScriptCallBackArray;
12
13 class SkScriptRuntime {
14 public:
15 enum SkError {
16 kNoError,
17 kArrayIndexOutOfBounds,
18 kCouldNotFindReferencedID,
19 kFunctionCallFailed,
20 kMemberOpFailed,
21 kPropertyOpFailed
22 };
23
24 SkScriptRuntime(SkTDScriptCallBackArray& callBackArray) : fCallBackArray (callBackArray)
25 { }
26 ~SkScriptRuntime();
27 bool executeTokens(unsigned char* opCode);
28 bool getResult(SkOperand2* result);
29 void untrack(SkOpArray* array);
30 void untrack(SkString* string);
31 private:
32 void track(SkOpArray* array);
33 void track(SkString* string);
34 SkTDScriptCallBackArray& fCallBackArray;
35 SkError fError;
36 SkTDStack<SkOperand2> fRunStack;
37 SkLongArray(SkOpArray*) fTrackArray;
38 SkTDStringArray fTrackString;
39 // illegal
40 SkScriptRuntime& operator=(const SkScriptRuntime&);
41 };
42
43 #endif // SkScriptRuntime_DEFINED
OLDNEW
« no previous file with comments | « skia/animator/SkScriptDecompile.cpp ('k') | skia/animator/SkScriptRuntime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698