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

Unified Diff: src/animator/SkScript.cpp

Issue 100803004: Changed maxInputCount for exact inputCount (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixed input count condition Created 7 years 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 | « include/core/SkImageFilter.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkScript.cpp
diff --git a/src/animator/SkScript.cpp b/src/animator/SkScript.cpp
index c74b195f3a8c7673275104b5122eead18496bd0e..934b0abe1a1a4729d1497b9f2eb139c53cb3fe7c 100644
--- a/src/animator/SkScript.cpp
+++ b/src/animator/SkScript.cpp
@@ -1532,11 +1532,11 @@ bool SkScriptEngine::ConvertTo(SkScriptEngine* engine, SkDisplayTypes toType, Sk
SkString* strPtr = new SkString();
SkASSERT(engine);
engine->track(strPtr);
- if (type == SkType_Int)
+ if (type == SkType_Int) {
strPtr->appendS32(operand.fS32);
- else if (type == SkType_Displayable)
+ } else if (type == SkType_Displayable) {
SkASSERT(0); // must call through instance version instead of static version
- else {
+ } else {
if (type != SkType_Float) {
success = false;
break;
« no previous file with comments | « include/core/SkImageFilter.h ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698