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

Side by Side Diff: cc/page_scale_animation.cc

Issue 11410021: Remove WTF and WebCore from cc/ and webkit/compositor_bindings/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/overdraw_metrics.cc ('k') | cc/picture.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h"
6
7 #include "cc/page_scale_animation.h" 5 #include "cc/page_scale_animation.h"
8 6
9 #include "cc/geometry.h" 7 #include "cc/geometry.h"
10 #include "ui/gfx/point_f.h" 8 #include "ui/gfx/point_f.h"
11 #include "ui/gfx/rect_f.h" 9 #include "ui/gfx/rect_f.h"
12 10
13 #include <math.h> 11 #include <math.h>
14 12
15 namespace { 13 namespace {
16 14
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 202
205 // Linearly interpolate the magnitude in log scale. 203 // Linearly interpolate the magnitude in log scale.
206 float diff = m_targetPageScaleFactor / m_startPageScaleFactor; 204 float diff = m_targetPageScaleFactor / m_startPageScaleFactor;
207 float logDiff = log(diff); 205 float logDiff = log(diff);
208 logDiff *= interp; 206 logDiff *= interp;
209 diff = exp(logDiff); 207 diff = exp(logDiff);
210 return m_startPageScaleFactor * diff; 208 return m_startPageScaleFactor * diff;
211 } 209 }
212 210
213 } // namespace cc 211 } // namespace cc
OLDNEW
« no previous file with comments | « cc/overdraw_metrics.cc ('k') | cc/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698