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

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

Issue 2652643004: Make PageScaleFactor work for oopif subframes.
Patch Set: Put function prototype in correct place. Created 3 years, 11 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/layers/picture_layer_impl.cc ('k') | cc/trees/layer_tree.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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() { 47 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {
48 ReleaseCompositorFrameSink(); 48 ReleaseCompositorFrameSink();
49 } 49 }
50 50
51 void FakeLayerTreeHostImpl::CreatePendingTree() { 51 void FakeLayerTreeHostImpl::CreatePendingTree() {
52 LayerTreeHostImpl::CreatePendingTree(); 52 LayerTreeHostImpl::CreatePendingTree();
53 float arbitrary_large_page_scale = 100000.f; 53 float arbitrary_large_page_scale = 100000.f;
54 pending_tree()->PushPageScaleFromMainThread( 54 pending_tree()->PushPageScaleFromMainThread(
55 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); 55 1.f, 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale);
56 } 56 }
57 57
58 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { 58 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) {
59 LayerTreeHostImpl::NotifyTileStateChanged(tile); 59 LayerTreeHostImpl::NotifyTileStateChanged(tile);
60 notify_tile_state_changed_called_ = true; 60 notify_tile_state_changed_called_ = true;
61 } 61 }
62 62
63 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const { 63 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const {
64 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast(); 64 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast();
65 } 65 }
(...skipping 30 matching lines...) Expand all
96 layerTree->BuildLayerListAndPropertyTreesForTesting(); 96 layerTree->BuildLayerListAndPropertyTreesForTesting();
97 layerTree->UpdateDrawProperties(update_lcd_text, 97 layerTree->UpdateDrawProperties(update_lcd_text,
98 force_skip_verify_visible_rect_calculations); 98 force_skip_verify_visible_rect_calculations);
99 } 99 }
100 100
101 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { 101 AnimationHost* FakeLayerTreeHostImpl::animation_host() const {
102 return static_cast<AnimationHost*>(mutator_host()); 102 return static_cast<AnimationHost*>(mutator_host());
103 } 103 }
104 104
105 } // namespace cc 105 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698