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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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_layer_tree_host.cc ('k') | cc/test/layer_tree_test.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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 size_t CountTilesRequired( 71 size_t CountTilesRequired(
72 TileRequirementCheck is_tile_required_callback) const; 72 TileRequirementCheck is_tile_required_callback) const;
73 size_t CountTilesRequiredForActivation() const; 73 size_t CountTilesRequiredForActivation() const;
74 size_t CountTilesRequiredForDraw() const; 74 size_t CountTilesRequiredForDraw() const;
75 75
76 using PictureLayerImpl::AddTiling; 76 using PictureLayerImpl::AddTiling;
77 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 77 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
78 using PictureLayerImpl::CanHaveTilings; 78 using PictureLayerImpl::CanHaveTilings;
79 using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
80 using PictureLayerImpl::MinimumContentsScale; 79 using PictureLayerImpl::MinimumContentsScale;
81 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace; 80 using PictureLayerImpl::GetViewportForTilePriorityInContentSpace;
82 using PictureLayerImpl::SanityCheckTilingState; 81 using PictureLayerImpl::SanityCheckTilingState;
83 using PictureLayerImpl::GetRecycledTwinLayer; 82 using PictureLayerImpl::GetRecycledTwinLayer;
84 using PictureLayerImpl::UpdateRasterSource; 83 using PictureLayerImpl::UpdateRasterSource;
85 84
86 using PictureLayerImpl::UpdateIdealScales; 85 using PictureLayerImpl::UpdateIdealScales;
87 using PictureLayerImpl::MaximumTilingContentsScale; 86 using PictureLayerImpl::MaximumTilingContentsScale;
88 87
89 void SetNeedsPostCommitInitialization() {
90 needs_post_commit_initialization_ = true;
91 }
92
93 bool needs_post_commit_initialization() const {
94 return needs_post_commit_initialization_;
95 }
96
97 float raster_page_scale() const { return raster_page_scale_; } 88 float raster_page_scale() const { return raster_page_scale_; }
98 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; } 89 void set_raster_page_scale(float scale) { raster_page_scale_ = scale; }
99 90
100 float ideal_contents_scale() const { return ideal_contents_scale_; } 91 float ideal_contents_scale() const { return ideal_contents_scale_; }
101 float raster_contents_scale() const { return raster_contents_scale_; } 92 float raster_contents_scale() const { return raster_contents_scale_; }
102 93
103 PictureLayerTiling* HighResTiling() const; 94 PictureLayerTiling* HighResTiling() const;
104 PictureLayerTiling* LowResTiling() const; 95 PictureLayerTiling* LowResTiling() const;
105 size_t num_tilings() const { return tilings_->num_tilings(); } 96 size_t num_tilings() const { return tilings_->num_tilings(); }
106 97
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 size_t append_quads_count_; 147 size_t append_quads_count_;
157 size_t did_become_active_call_count_; 148 size_t did_become_active_call_count_;
158 bool has_valid_tile_priorities_; 149 bool has_valid_tile_priorities_;
159 bool use_set_valid_tile_priorities_flag_; 150 bool use_set_valid_tile_priorities_flag_;
160 size_t release_resources_count_; 151 size_t release_resources_count_;
161 }; 152 };
162 153
163 } // namespace cc 154 } // namespace cc
164 155
165 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 156 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698