| 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()) {
|
|
|