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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 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/test/fake_external_begin_frame_source.cc ('k') | cc/test/test_compositor_frame_sink.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 22 matching lines...) Expand all
33 AnimationHost::CreateForTesting(ThreadInstance::IMPL), 33 AnimationHost::CreateForTesting(ThreadInstance::IMPL),
34 0), 34 0),
35 notify_tile_state_changed_called_(false) { 35 notify_tile_state_changed_called_(false) {
36 // Explicitly clear all debug settings. 36 // Explicitly clear all debug settings.
37 SetDebugState(LayerTreeDebugState()); 37 SetDebugState(LayerTreeDebugState());
38 SetViewportSize(gfx::Size(100, 100)); 38 SetViewportSize(gfx::Size(100, 100));
39 39
40 // Start an impl frame so tests have a valid frame_time to work with. 40 // Start an impl frame so tests have a valid frame_time to work with.
41 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1); 41 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1);
42 WillBeginImplFrame( 42 WillBeginImplFrame(
43 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks)); 43 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, 0, 1, time_ticks));
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(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/test/fake_external_begin_frame_source.cc ('k') | cc/test/test_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698