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

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

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/resources/tiling_set_raster_queue_required.cc ('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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 gfx::Rect viewport_rect_for_tile_priority_in_content_space() { 119 gfx::Rect viewport_rect_for_tile_priority_in_content_space() {
120 return viewport_rect_for_tile_priority_in_content_space_; 120 return viewport_rect_for_tile_priority_in_content_space_;
121 } 121 }
122 122
123 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; } 123 void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; }
124 124
125 void SetIsDrawnRenderSurfaceLayerListMember(bool is); 125 void SetIsDrawnRenderSurfaceLayerListMember(bool is);
126 126
127 void CreateAllTiles(); 127 void CreateAllTiles();
128 void SetAllTilesVisible();
129 void SetAllTilesReady(); 128 void SetAllTilesReady();
130 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 129 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
131 void SetTileReady(Tile* tile); 130 void SetTileReady(Tile* tile);
132 void ResetAllTilesPriorities();
133 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } 131 PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
134 132
135 // Add the given tiling as a "used" tiling during AppendQuads. This ensures 133 // Add the given tiling as a "used" tiling during AppendQuads. This ensures
136 // that future calls to UpdateTiles don't delete the tiling. 134 // that future calls to UpdateTiles don't delete the tiling.
137 void MarkAllTilingsUsed() { 135 void MarkAllTilingsUsed() {
138 last_append_quads_tilings_.clear(); 136 last_append_quads_tilings_.clear();
139 for (size_t i = 0; i < tilings_->num_tilings(); ++i) 137 for (size_t i = 0; i < tilings_->num_tilings(); ++i)
140 last_append_quads_tilings_.push_back(tilings_->tiling_at(i)); 138 last_append_quads_tilings_.push_back(tilings_->tiling_at(i));
141 } 139 }
142 140
(...skipping 29 matching lines...) Expand all
172 size_t append_quads_count_; 170 size_t append_quads_count_;
173 size_t did_become_active_call_count_; 171 size_t did_become_active_call_count_;
174 bool has_valid_tile_priorities_; 172 bool has_valid_tile_priorities_;
175 bool use_set_valid_tile_priorities_flag_; 173 bool use_set_valid_tile_priorities_flag_;
176 size_t release_resources_count_; 174 size_t release_resources_count_;
177 }; 175 };
178 176
179 } // namespace cc 177 } // namespace cc
180 178
181 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 179 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_raster_queue_required.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698