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

Unified Diff: cc/CCActiveAnimation.cpp

Issue 10909162: Switch use_libcc_for_compositor default to true (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use base::snprintf Created 8 years, 3 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCActiveAnimation.cpp
diff --git a/cc/CCActiveAnimation.cpp b/cc/CCActiveAnimation.cpp
index 1602468a09252d30eaba9d061733de5eeaa91652..8c2f73903bd133f368b529193e02747f4bad107d 100644
--- a/cc/CCActiveAnimation.cpp
+++ b/cc/CCActiveAnimation.cpp
@@ -8,6 +8,7 @@
#include "CCAnimationCurve.h"
#include "TraceEvent.h"
+#include "base/string_util.h"
#include <cmath>
#include <wtf/Assertions.h>
#include <wtf/StdLibExtras.h>
@@ -75,7 +76,7 @@ void CCActiveAnimation::setRunState(RunState runState, double monotonicTime)
return;
char nameBuffer[256];
- snprintf(nameBuffer, sizeof(nameBuffer), "%s-%d%s", s_targetPropertyNames[m_targetProperty], m_group, m_isControllingInstance ? "(impl)" : "");
+ base::snprintf(nameBuffer, sizeof(nameBuffer), "%s-%d%s", s_targetPropertyNames[m_targetProperty], m_group, m_isControllingInstance ? "(impl)" : "");
bool isWaitingToStart = m_runState == WaitingForNextTick
|| m_runState == WaitingForTargetAvailability
@@ -100,7 +101,7 @@ void CCActiveAnimation::setRunState(RunState runState, double monotonicTime)
TRACE_EVENT_ASYNC_END0("cc", "CCActiveAnimation", this);
char stateBuffer[256];
- snprintf(stateBuffer, sizeof(stateBuffer), "%s->%s", oldRunStateName, newRunStateName);
+ base::snprintf(stateBuffer, sizeof(stateBuffer), "%s->%s", oldRunStateName, newRunStateName);
TRACE_EVENT_INSTANT2("cc", "CCLayerAnimationController::setRunState", "Name", TRACE_STR_COPY(nameBuffer), "State", TRACE_STR_COPY(stateBuffer));
}
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698