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

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

Issue 783543003: Update from https://crrev.com/306901 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/surfaces/surface_aggregator_unittest.cc ('k') | cc/test/render_pass_test_common.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 "cc/test/begin_frame_args_test.h" 5 #include "cc/test/begin_frame_args_test.h"
6 #include "cc/test/fake_layer_tree_host_impl.h" 6 #include "cc/test/fake_layer_tree_host_impl.h"
7 #include "cc/test/test_shared_bitmap_manager.h" 7 #include "cc/test/test_shared_bitmap_manager.h"
8 #include "cc/trees/layer_tree_impl.h" 8 #include "cc/trees/layer_tree_impl.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1); 45 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1);
46 SetCurrentBeginFrameArgs( 46 SetCurrentBeginFrameArgs(
47 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks)); 47 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
48 } 48 }
49 49
50 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {} 50 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}
51 51
52 void FakeLayerTreeHostImpl::CreatePendingTree() { 52 void FakeLayerTreeHostImpl::CreatePendingTree() {
53 LayerTreeHostImpl::CreatePendingTree(); 53 LayerTreeHostImpl::CreatePendingTree();
54 float arbitrary_large_page_scale = 100000.f; 54 float arbitrary_large_page_scale = 100000.f;
55 pending_tree()->SetPageScaleFactorAndLimits( 55 pending_tree()->PushPageScaleFromMainThread(
56 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); 56 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale);
57 } 57 }
58 58
59 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const { 59 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const {
60 if (!current_begin_frame_args_.IsValid()) 60 if (!current_begin_frame_args_.IsValid())
61 return LayerTreeHostImpl::CurrentBeginFrameArgs(); 61 return LayerTreeHostImpl::CurrentBeginFrameArgs();
62 return current_begin_frame_args_; 62 return current_begin_frame_args_;
63 } 63 }
64 64
65 void FakeLayerTreeHostImpl::SetCurrentBeginFrameArgs( 65 void FakeLayerTreeHostImpl::SetCurrentBeginFrameArgs(
(...skipping 17 matching lines...) Expand all
83 UpdateNumChildrenAndDrawProperties(active_tree()); 83 UpdateNumChildrenAndDrawProperties(active_tree());
84 } 84 }
85 85
86 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( 86 void FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties(
87 LayerTreeImpl* layerTree) { 87 LayerTreeImpl* layerTree) {
88 RecursiveUpdateNumChildren(layerTree->root_layer()); 88 RecursiveUpdateNumChildren(layerTree->root_layer());
89 layerTree->UpdateDrawProperties(); 89 layerTree->UpdateDrawProperties();
90 } 90 }
91 91
92 } // namespace cc 92 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_unittest.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698