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

Unified Diff: src/animator/SkAnimator.cpp

Issue 12772003: Removed unused parameters (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleRepeatTile.cpp ('k') | src/animator/SkDisplayMovie.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkAnimator.cpp
===================================================================
--- src/animator/SkAnimator.cpp (revision 8101)
+++ src/animator/SkAnimator.cpp (working copy)
@@ -223,8 +223,8 @@
return getFieldType(field);
}
- static bool getArrayCommon(const SkDisplayable* ae, const SkMemberInfo* ai,
- int index, SkOperand* operand, SkDisplayTypes type) {
+static bool getArrayCommon(const SkDisplayable* ae, const SkMemberInfo* ai,
+ int index, SkOperand* operand) {
const SkDisplayable* element = (const SkDisplayable*) ae;
const SkMemberInfo* info = (const SkMemberInfo*) ai;
SkASSERT(info->fType == SkType_Array);
@@ -234,7 +234,7 @@
int32_t SkAnimator::getArrayInt(const SkDisplayable* ae,
const SkMemberInfo* ai, int index) {
SkOperand operand;
- bool result = getArrayCommon(ae, ai, index, &operand, SkType_Int);
+ bool result = getArrayCommon(ae, ai, index, &operand);
return result ? operand.fS32 : SK_NaN32;
}
@@ -251,7 +251,7 @@
SkScalar SkAnimator::getArrayScalar(const SkDisplayable* ae,
const SkMemberInfo* ai, int index) {
SkOperand operand;
- bool result = getArrayCommon(ae, ai, index, &operand, SkType_Float);
+ bool result = getArrayCommon(ae, ai, index, &operand);
return result ? operand.fScalar : SK_ScalarNaN;
}
@@ -268,7 +268,7 @@
const char* SkAnimator::getArrayString(const SkDisplayable* ae,
const SkMemberInfo* ai, int index) {
SkOperand operand;
- bool result = getArrayCommon(ae, ai, index, &operand, SkType_String);
+ bool result = getArrayCommon(ae, ai, index, &operand);
return result ? operand.fString->c_str() : NULL;
}
@@ -674,8 +674,8 @@
#endif
+#ifdef SK_SUPPORT_UNITTEST
void SkAnimator::Init(bool runUnitTests) {
-#ifdef SK_SUPPORT_UNITTEST
if (runUnitTests == false)
return;
static const struct {
@@ -695,8 +695,10 @@
gUnitTests[i].fUnitTest();
SkDebugf("SkAnimator: End UnitTest for %s\n", gUnitTests[i].fTypeName);
}
+}
+#else
+void SkAnimator::Init(bool) {}
#endif
-}
void SkAnimator::Term() {
}
« no previous file with comments | « samplecode/SampleRepeatTile.cpp ('k') | src/animator/SkDisplayMovie.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698