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

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

Issue 2334003003: cc : Compute visible rects dynamically (1) (Closed)
Patch Set: comment Created 4 years, 3 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/output/bsp_tree_perftest.cc ('k') | cc/test/fake_layer_tree_host_impl.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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "cc/test/fake_layer_tree_host_impl_client.h" 8 #include "cc/test/fake_layer_tree_host_impl_client.h"
9 #include "cc/test/fake_rendering_stats_instrumentation.h" 9 #include "cc/test/fake_rendering_stats_instrumentation.h"
10 #include "cc/trees/layer_tree_host_impl.h" 10 #include "cc/trees/layer_tree_host_impl.h"
(...skipping 25 matching lines...) Expand all
36 LayerTreeHostImpl::FrameData frame_data; 36 LayerTreeHostImpl::FrameData frame_data;
37 PrepareToDraw(&frame_data); 37 PrepareToDraw(&frame_data);
38 DidDrawAllLayers(frame_data); 38 DidDrawAllLayers(frame_data);
39 } 39 }
40 40
41 void CreatePendingTree() override; 41 void CreatePendingTree() override;
42 42
43 void NotifyTileStateChanged(const Tile* tile) override; 43 void NotifyTileStateChanged(const Tile* tile) override;
44 BeginFrameArgs CurrentBeginFrameArgs() const override; 44 BeginFrameArgs CurrentBeginFrameArgs() const override;
45 void AdvanceToNextFrame(base::TimeDelta advance_by); 45 void AdvanceToNextFrame(base::TimeDelta advance_by);
46 void UpdateNumChildrenAndDrawPropertiesForActiveTree(); 46 void UpdateNumChildrenAndDrawPropertiesForActiveTree(
47 static void UpdateNumChildrenAndDrawProperties(LayerTreeImpl* layerTree); 47 bool force_skip_verify_visible_rect_calculations = false);
48 static void UpdateNumChildrenAndDrawProperties(
49 LayerTreeImpl* layerTree,
50 bool force_skip_verify_visible_rect_calculations = false);
48 static int RecursiveUpdateNumChildren(LayerImpl* layer); 51 static int RecursiveUpdateNumChildren(LayerImpl* layer);
49 52
50 using LayerTreeHostImpl::ActivateSyncTree; 53 using LayerTreeHostImpl::ActivateSyncTree;
51 using LayerTreeHostImpl::prepare_tiles_needed; 54 using LayerTreeHostImpl::prepare_tiles_needed;
52 using LayerTreeHostImpl::is_likely_to_require_a_draw; 55 using LayerTreeHostImpl::is_likely_to_require_a_draw;
53 using LayerTreeHostImpl::RemoveRenderPasses; 56 using LayerTreeHostImpl::RemoveRenderPasses;
54 57
55 bool notify_tile_state_changed_called() const { 58 bool notify_tile_state_changed_called() const {
56 return notify_tile_state_changed_called_; 59 return notify_tile_state_changed_called_;
57 } 60 }
58 void set_notify_tile_state_changed_called(bool called) { 61 void set_notify_tile_state_changed_called(bool called) {
59 notify_tile_state_changed_called_ = called; 62 notify_tile_state_changed_called_ = called;
60 } 63 }
61 64
62 private: 65 private:
63 FakeLayerTreeHostImplClient client_; 66 FakeLayerTreeHostImplClient client_;
64 FakeRenderingStatsInstrumentation stats_instrumentation_; 67 FakeRenderingStatsInstrumentation stats_instrumentation_;
65 bool notify_tile_state_changed_called_; 68 bool notify_tile_state_changed_called_;
66 }; 69 };
67 70
68 } // namespace cc 71 } // namespace cc
69 72
70 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ 73 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/output/bsp_tree_perftest.cc ('k') | cc/test/fake_layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698