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

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

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 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
« no previous file with comments | « cc/proto/layer_tree.proto ('k') | cc/test/test_layer_tree_host_base.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/fake_layer_tree_host_impl.h" 5 #include "cc/test/fake_layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "cc/test/begin_frame_args_test.h" 10 #include "cc/test/begin_frame_args_test.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() { 46 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {
47 ReleaseCompositorFrameSink(); 47 ReleaseCompositorFrameSink();
48 } 48 }
49 49
50 void FakeLayerTreeHostImpl::CreatePendingTree() { 50 void FakeLayerTreeHostImpl::CreatePendingTree() {
51 LayerTreeHostImpl::CreatePendingTree(); 51 LayerTreeHostImpl::CreatePendingTree();
52 float arbitrary_large_page_scale = 100000.f; 52 float arbitrary_large_page_scale = 100000.f;
53 pending_tree()->PushPageScaleFromMainThread( 53 pending_tree()->PushPageScaleFromMainThread(
54 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); 54 1.f, 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale);
55 } 55 }
56 56
57 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { 57 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) {
58 LayerTreeHostImpl::NotifyTileStateChanged(tile); 58 LayerTreeHostImpl::NotifyTileStateChanged(tile);
59 notify_tile_state_changed_called_ = true; 59 notify_tile_state_changed_called_ = true;
60 } 60 }
61 61
62 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const { 62 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const {
63 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast(); 63 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast();
64 } 64 }
(...skipping 30 matching lines...) Expand all
95 layerTree->BuildLayerListAndPropertyTreesForTesting(); 95 layerTree->BuildLayerListAndPropertyTreesForTesting();
96 layerTree->UpdateDrawProperties(update_lcd_text, 96 layerTree->UpdateDrawProperties(update_lcd_text,
97 force_skip_verify_visible_rect_calculations); 97 force_skip_verify_visible_rect_calculations);
98 } 98 }
99 99
100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { 100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const {
101 return static_cast<AnimationHost*>(mutator_host()); 101 return static_cast<AnimationHost*>(mutator_host());
102 } 102 }
103 103
104 } // namespace cc 104 } // namespace cc
OLDNEW
« no previous file with comments | « cc/proto/layer_tree.proto ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698