summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_layer_tree_host_impl.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 04:07:20 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 04:07:20 +0000
commit2f0d92f42bf494a62bd41309d888348f17340b6d (patch)
treed4347382c7324f2c8e7ecff2b77349c58e50f504 /cc/test/fake_layer_tree_host_impl.cc
parent1744b847111fb1ac0b27bca76b55cd823cc1a09c (diff)
downloadchromium_src-2f0d92f42bf494a62bd41309d888348f17340b6d.zip
chromium_src-2f0d92f42bf494a62bd41309d888348f17340b6d.tar.gz
chromium_src-2f0d92f42bf494a62bd41309d888348f17340b6d.tar.bz2
cc: Don't add low res tilings during animation/pinch
R=danakj@chromium.org BUG=247465 Review URL: https://chromiumcodereview.appspot.com/16674004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_layer_tree_host_impl.cc')
-rw-r--r--cc/test/fake_layer_tree_host_impl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/test/fake_layer_tree_host_impl.cc b/cc/test/fake_layer_tree_host_impl.cc
index 5755e98..cc07041 100644
--- a/cc/test/fake_layer_tree_host_impl.cc
+++ b/cc/test/fake_layer_tree_host_impl.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "cc/test/fake_layer_tree_host_impl.h"
+#include "cc/trees/layer_tree_impl.h"
namespace cc {
@@ -28,4 +29,11 @@ FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}
+void FakeLayerTreeHostImpl::CreatePendingTree() {
+ LayerTreeHostImpl::CreatePendingTree();
+ float arbitrary_large_page_scale = 100000.f;
+ pending_tree()->SetPageScaleFactorAndLimits(
+ 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale);
+}
+
} // namespace cc