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

Side by Side Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 23171014: Fix UpdateTilePriorities viewport in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 221292 Created 7 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.h ('k') | cc/test/fake_output_surface_client.h » ('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 "cc/test/fake_layer_tree_host_impl.h" 5 #include "cc/test/fake_layer_tree_host_impl.h"
6 #include "cc/trees/layer_tree_impl.h" 6 #include "cc/trees/layer_tree_impl.h"
7 7
8 namespace cc { 8 namespace cc {
9 9
10 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy) 10 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
(...skipping 18 matching lines...) Expand all
29 29
30 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {} 30 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}
31 31
32 void FakeLayerTreeHostImpl::CreatePendingTree() { 32 void FakeLayerTreeHostImpl::CreatePendingTree() {
33 LayerTreeHostImpl::CreatePendingTree(); 33 LayerTreeHostImpl::CreatePendingTree();
34 float arbitrary_large_page_scale = 100000.f; 34 float arbitrary_large_page_scale = 100000.f;
35 pending_tree()->SetPageScaleFactorAndLimits( 35 pending_tree()->SetPageScaleFactorAndLimits(
36 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); 36 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale);
37 } 37 }
38 38
39 base::TimeTicks FakeLayerTreeHostImpl::CurrentFrameTimeTicks() {
40 if (current_frame_time_ticks_.is_null())
41 return LayerTreeHostImpl::CurrentFrameTimeTicks();
42 return current_frame_time_ticks_;
43 }
44
45 void FakeLayerTreeHostImpl::SetCurrentFrameTimeTicks(
46 base::TimeTicks current_frame_time_ticks) {
47 current_frame_time_ticks_ = current_frame_time_ticks;
48 }
49
39 } // namespace cc 50 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.h ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698