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

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

Issue 2631453002: Revert of cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: 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/raster/task.cc ('k') | cc/test/fake_tile_manager.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 13 matching lines...) Expand all
24 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( 24 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
25 const LayerTreeSettings& settings, 25 const LayerTreeSettings& settings,
26 TaskRunnerProvider* task_runner_provider, 26 TaskRunnerProvider* task_runner_provider,
27 TaskGraphRunner* task_graph_runner) 27 TaskGraphRunner* task_graph_runner)
28 : LayerTreeHostImpl(settings, 28 : LayerTreeHostImpl(settings,
29 &client_, 29 &client_,
30 task_runner_provider, 30 task_runner_provider,
31 &stats_instrumentation_, 31 &stats_instrumentation_,
32 task_graph_runner, 32 task_graph_runner,
33 AnimationHost::CreateForTesting(ThreadInstance::IMPL), 33 AnimationHost::CreateForTesting(ThreadInstance::IMPL),
34 0, 34 0),
35 nullptr),
36 notify_tile_state_changed_called_(false) { 35 notify_tile_state_changed_called_(false) {
37 // Explicitly clear all debug settings. 36 // Explicitly clear all debug settings.
38 SetDebugState(LayerTreeDebugState()); 37 SetDebugState(LayerTreeDebugState());
39 SetViewportSize(gfx::Size(100, 100)); 38 SetViewportSize(gfx::Size(100, 100));
40 39
41 // 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.
42 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1); 41 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1);
43 WillBeginImplFrame( 42 WillBeginImplFrame(
44 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, 0, 1, time_ticks)); 43 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, 0, 1, time_ticks));
45 } 44 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 layerTree->BuildLayerListAndPropertyTreesForTesting(); 95 layerTree->BuildLayerListAndPropertyTreesForTesting();
97 layerTree->UpdateDrawProperties(update_lcd_text, 96 layerTree->UpdateDrawProperties(update_lcd_text,
98 force_skip_verify_visible_rect_calculations); 97 force_skip_verify_visible_rect_calculations);
99 } 98 }
100 99
101 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { 100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const {
102 return static_cast<AnimationHost*>(mutator_host()); 101 return static_cast<AnimationHost*>(mutator_host());
103 } 102 }
104 103
105 } // namespace cc 104 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/task.cc ('k') | cc/test/fake_tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698