aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/animator
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-01-12 22:58:35 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-01-12 22:58:35 +0000
commitec10d21eb9a17639688188b0defce6d757331eb4 (patch)
tree96553d1341941bf391df4ca8fd38d50081e0b849 /src/animator
parent9d3a985aa3c82605346ed1518375a8c384b925e5 (diff)
remove obsolete SK_BUILD_FOR_BREW conditional
git-svn-id: http://skia.googlecode.com/svn/trunk@473 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/animator')
-rw-r--r--src/animator/SkAnimator.cpp23
-rw-r--r--src/animator/SkAnimatorScript.cpp5
-rw-r--r--src/animator/SkAnimatorScript2.cpp4
-rw-r--r--src/animator/SkMemberInfo.h4
-rw-r--r--src/animator/SkScript.cpp4
-rw-r--r--src/animator/SkScriptTokenizer.cpp4
6 files changed, 9 insertions, 35 deletions
diff --git a/src/animator/SkAnimator.cpp b/src/animator/SkAnimator.cpp
index 242398bba8..830f4535f8 100644
--- a/src/animator/SkAnimator.cpp
+++ b/src/animator/SkAnimator.cpp
@@ -42,24 +42,13 @@
#define _static static
#endif
-#if !defined SK_BUILD_FOR_BREW || defined SK_DEBUG
- _static const char gMathPrimerText[] =
- "<screenplay>"
- "<Math id=\"Math\"/>"
- "<Number id=\"Number\"/>"
- "</screenplay>";
-#endif
-
-#if defined SK_BUILD_FOR_BREW || defined SK_DEBUG
- _static const char gMathPrimerBinary[] =
- "\x0Ascreenplay\x04Mathbid\x04Math@@"; // !!! now out of date -- does not include Number
-#endif
+_static const char gMathPrimerText[] =
+"<screenplay>"
+ "<Math id=\"Math\"/>"
+ "<Number id=\"Number\"/>"
+"</screenplay>";
-#if defined SK_BUILD_FOR_BREW
- #define gMathPrimer gMathPrimerBinary
-#else
- #define gMathPrimer gMathPrimerText
-#endif
+#define gMathPrimer gMathPrimerText
SkAnimator::SkAnimator() : fMaker(NULL) {
initialize();
diff --git a/src/animator/SkAnimatorScript.cpp b/src/animator/SkAnimatorScript.cpp
index eafe1dbf59..cc111ca540 100644
--- a/src/animator/SkAnimatorScript.cpp
+++ b/src/animator/SkAnimatorScript.cpp
@@ -519,8 +519,6 @@ static const char scriptTestSetup[] =
"</event>\n"
"</screenplay>";
-#if !defined(SK_BUILD_FOR_BREW)
-
#define DEFAULT_ANSWER , 0
static const SkScriptNAnswer scriptTests[] = {
@@ -559,12 +557,11 @@ static const SkScriptNAnswer scriptTests[] = {
{ "0 ? alpha.value.slice(1,2) : 1", SkType_Int, 1 DEFAULT_ANSWER DEFAULT_ANSWER },
{ "idy", SkType_Int, 3 DEFAULT_ANSWER DEFAULT_ANSWER }
};
-#endif
#define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
void SkAnimatorScript::UnitTest() {
-#if !defined(SK_BUILD_FOR_BREW) && defined(SK_SUPPORT_UNITTEST)
+#if defined(SK_SUPPORT_UNITTEST)
SkAnimator animator;
SkASSERT(animator.decodeMemory(scriptTestSetup, sizeof(scriptTestSetup)-1));
SkEvent evt;
diff --git a/src/animator/SkAnimatorScript2.cpp b/src/animator/SkAnimatorScript2.cpp
index 08dbf162c7..3b8ec69a8e 100644
--- a/src/animator/SkAnimatorScript2.cpp
+++ b/src/animator/SkAnimatorScript2.cpp
@@ -543,7 +543,6 @@ static const char scriptTestSetup[] =
"</event>"
"</screenplay>";
-#if !defined(SK_BUILD_FOR_BREW)
static const SkScriptNAnswer scriptTests[] = {
{ "alpha+alpha", SkType_String, 0, 0, "abcabc" },
{ "0 ? Math.sin(0) : 1", SkType_Int, 1 },
@@ -572,12 +571,11 @@ static const SkScriptNAnswer scriptTests[] = {
{ "0 ? alpha.value.slice(1,2) : 1", SkType_Int, 1 },
{ "idy", SkType_Int, 3 }
};
-#endif
#define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
void SkAnimatorScript2::UnitTest() {
-#if !defined(SK_BUILD_FOR_BREW) && defined(SK_SUPPORT_UNITTEST)
+#if defined(SK_SUPPORT_UNITTEST)
SkAnimator animator;
SkASSERT(animator.decodeMemory(scriptTestSetup, sizeof(scriptTestSetup)-1));
SkEvent evt;
diff --git a/src/animator/SkMemberInfo.h b/src/animator/SkMemberInfo.h
index e45994e224..4f25145a0a 100644
--- a/src/animator/SkMemberInfo.h
+++ b/src/animator/SkMemberInfo.h
@@ -20,10 +20,6 @@
#if defined SK_BUILD_CONDENSED
#define SK_USE_CONDENSED_INFO 0
-#elif defined SK_BUILD_FOR_BREW
- #define SK_USE_CONDENSED_INFO 1 /* required by BREW to handle its lack of writable globals */
-#else
- #define SK_USE_CONDENSED_INFO 0 /* optional, but usually 1 unless Cary is testing something */
#endif
#include "SkDisplayType.h"
diff --git a/src/animator/SkScript.cpp b/src/animator/SkScript.cpp
index 3b67d7b83f..f81147d4a2 100644
--- a/src/animator/SkScript.cpp
+++ b/src/animator/SkScript.cpp
@@ -1670,7 +1670,6 @@ bool SkScriptEngine::ValueToString(SkScriptValue value, SkString* string) {
#define testTrue(expression) { #expression, SkType_Int, 1, DEF_SCALAR_ANSWER, DEF_STRING_ANSWER }
#define testFalse(expression) { #expression, SkType_Int, 0, DEF_SCALAR_ANSWER, DEF_STRING_ANSWER }
-#if !defined(SK_BUILD_FOR_BREW)
static const SkScriptNAnswer scriptTests[] = {
testInt(1>1/2),
testInt((6+7)*8),
@@ -1884,12 +1883,10 @@ static const SkScriptNAnswer scriptTests[] = {
, { "123.5", SkType_Float, 0, SkIntToScalar(123) + SK_Scalar1/2, DEF_STRING_ANSWER }
#endif
};
-#endif // build for brew
#define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
void SkScriptEngine::UnitTest() {
-#if !defined(SK_BUILD_FOR_BREW)
for (unsigned index = 0; index < SkScriptNAnswer_testCount; index++) {
SkScriptEngine engine(SkScriptEngine::ToOpType(scriptTests[index].fType));
SkScriptValue value;
@@ -1912,7 +1909,6 @@ void SkScriptEngine::UnitTest() {
SkASSERT(0);
}
}
-#endif
}
#endif
diff --git a/src/animator/SkScriptTokenizer.cpp b/src/animator/SkScriptTokenizer.cpp
index 6be2abd50c..efd187291c 100644
--- a/src/animator/SkScriptTokenizer.cpp
+++ b/src/animator/SkScriptTokenizer.cpp
@@ -1274,7 +1274,6 @@ bool SkScriptEngine2::ValueToString(const SkScriptValue2& value, SkString* strin
#define testTrue(expression) { #expression, SkOperand2::kS32, 1 }
#define testFalse(expression) { #expression, SkOperand2::kS32, 0 }
-#if !defined(SK_BUILD_FOR_BREW)
static const SkScriptNAnswer2 scriptTests[] = {
testInt(1||0&&3),
#ifdef SK_CAN_USE_FLOAT
@@ -1473,12 +1472,11 @@ static const SkScriptNAnswer2 scriptTests[] = {
, { "123.5", SkOperand2::kScalar, 0, SkIntToScalar(123) + SK_Scalar1/2 }
#endif
};
-#endif // build for brew
#define SkScriptNAnswer_testCount SK_ARRAY_COUNT(scriptTests)
void SkScriptEngine2::UnitTest() {
-#if !defined(SK_BUILD_FOR_BREW) && defined(SK_SUPPORT_UNITTEST)
+#if defined(SK_SUPPORT_UNITTEST)
ValidateDecompileTable();
for (int index = 0; index < SkScriptNAnswer_testCount; index++) {
SkScriptEngine2 engine(scriptTests[index].fType);