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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: fix some tests; needs rebase; Created 7 years, 6 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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 30616268f2053ee494aad578457546f0fa88c2d5..fd1c221e3c8a1906493675615747b25ac5627263 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -4,6 +4,7 @@
#include "cc/trees/layer_tree_impl.h"
+#include "base/strings/stringprintf.h"
#include "base/debug/trace_event.h"
#include "cc/animation/keyframed_animation_curve.h"
#include "cc/animation/scrollbar_animation_controller.h"
@@ -178,6 +179,12 @@ void LayerTreeImpl::SetPageScaleFactorAndLimits(float page_scale_factor,
}
void LayerTreeImpl::SetPageScaleDelta(float delta) {
+ std::string str;
+ base::StringAppendF(&str, "%s : delta %f",
+ __PRETTY_FUNCTION__,
+ delta);
+ TRACE_EVENT0("cc", str.c_str());
+
// Clamp to the current min/max limits.
float total = page_scale_factor_ * delta;
if (min_page_scale_factor_ && total < min_page_scale_factor_)
@@ -187,7 +194,7 @@ void LayerTreeImpl::SetPageScaleDelta(float delta) {
if (delta == page_scale_delta_)
return;
-
+TRACE_EVENT0("cc", __PRETTY_FUNCTION__);
page_scale_delta_ = delta;
if (IsActiveTree()) {

Powered by Google App Engine
This is Rietveld 408576698