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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix counting of required for activation tiles. Created 6 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/test/fake_layer_tree_host_impl_client.h ('k') | cc/test/fake_picture_layer_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/picture_layer_impl.h" 9 #include "cc/layers/picture_layer_impl.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 size_t did_become_active_call_count() { 46 size_t did_become_active_call_count() {
47 return did_become_active_call_count_; 47 return did_become_active_call_count_;
48 } 48 }
49 49
50 bool HasValidTilePriorities() const override; 50 bool HasValidTilePriorities() const override;
51 void set_has_valid_tile_priorities(bool has_valid_priorities) { 51 void set_has_valid_tile_priorities(bool has_valid_priorities) {
52 has_valid_tile_priorities_ = has_valid_priorities; 52 has_valid_tile_priorities_ = has_valid_priorities;
53 use_set_valid_tile_priorities_flag_ = true; 53 use_set_valid_tile_priorities_flag_ = true;
54 } 54 }
55 55
56 size_t CountTilesRequired(
57 TileRequirementCheck is_tile_required_callback) const;
58 size_t CountTilesRequiredForActivation() const;
59 size_t CountTilesRequiredForDraw() const;
60
56 using PictureLayerImpl::AddTiling; 61 using PictureLayerImpl::AddTiling;
57 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 62 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
58 using PictureLayerImpl::CanHaveTilings; 63 using PictureLayerImpl::CanHaveTilings;
59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; 64 using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
60 using PictureLayerImpl::MinimumContentsScale; 65 using PictureLayerImpl::MinimumContentsScale;
61 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace; 66 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace;
62 using PictureLayerImpl::SanityCheckTilingState; 67 using PictureLayerImpl::SanityCheckTilingState;
63 using PictureLayerImpl::GetRecycledTwinLayer; 68 using PictureLayerImpl::GetRecycledTwinLayer;
64 using PictureLayerImpl::UpdateRasterSource; 69 using PictureLayerImpl::UpdateRasterSource;
65 70
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 size_t append_quads_count_; 136 size_t append_quads_count_;
132 size_t did_become_active_call_count_; 137 size_t did_become_active_call_count_;
133 bool has_valid_tile_priorities_; 138 bool has_valid_tile_priorities_;
134 bool use_set_valid_tile_priorities_flag_; 139 bool use_set_valid_tile_priorities_flag_;
135 size_t release_resources_count_; 140 size_t release_resources_count_;
136 }; 141 };
137 142
138 } // namespace cc 143 } // namespace cc
139 144
140 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 145 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.h ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698