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

Side by Side Diff: skia/animator/SkOperand2.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/SkOperand.h ('k') | skia/animator/SkOperandInterpolator.h » ('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 SkOperand2_DEFINED
2 #define SkOperand2_DEFINED
3
4 #include "SkScalar.h"
5
6 class SkOpArray;
7 class SkString;
8
9 union SkOperand2 {
10 enum OpType {
11 kNoType,
12 kS32 = 1,
13 kScalar = 2,
14 kString = 4,
15 kArray = 8,
16 kObject = 16
17 };
18 SkOpArray* fArray;
19 void* fObject;
20 size_t fReference;
21 int32_t fS32;
22 SkScalar fScalar;
23 SkString* fString;
24 };
25
26 struct SkScriptValue2 {
27 enum IsConstant {
28 kConstant,
29 kVariable
30 };
31 enum IsWritten {
32 kUnwritten,
33 kWritten
34 };
35 SkOperand2 fOperand;
36 SkOperand2::OpType fType : 8;
37 IsConstant fIsConstant : 8;
38 IsWritten fIsWritten : 8;
39 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fO perand.fArray; }
40 void* getObject() { SkASSERT(fType == SkOperand2::kObject); return fOper and.fObject; }
41 int32_t getS32() { SkASSERT(fType == SkOperand2::kS32); return fOperand. fS32; }
42 SkScalar getScalar() { SkASSERT(fType == SkOperand2::kScalar); return fO perand.fScalar; }
43 SkString* getString() { SkASSERT(fType == SkOperand2::kString); return f Operand.fString; }
44 bool isConstant() const { return fIsConstant == kConstant; }
45 };
46
47 #endif // SkOperand2_DEFINED
OLDNEW
« no previous file with comments | « skia/animator/SkOperand.h ('k') | skia/animator/SkOperandInterpolator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698