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

Side by Side Diff: cc/resources/tile.h

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 6 years, 5 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 | « no previous file | cc/resources/tile.cc » ('j') | cc/resources/tile_manager.h » ('J')
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_RESOURCES_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 float contents_scale, 167 float contents_scale,
168 int layer_id, 168 int layer_id,
169 int source_frame_number, 169 int source_frame_number,
170 int flags); 170 int flags);
171 ~Tile(); 171 ~Tile();
172 172
173 ManagedTileState& managed_state() { return managed_state_; } 173 ManagedTileState& managed_state() { return managed_state_; }
174 const ManagedTileState& managed_state() const { return managed_state_; } 174 const ManagedTileState& managed_state() const { return managed_state_; }
175 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; 175 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const;
176 176
177 bool HasRasterTask();
reveman 2014/07/21 12:27:49 bool HasRasterTask() const;
178
177 TileManager* tile_manager_; 179 TileManager* tile_manager_;
178 scoped_refptr<PicturePileImpl> picture_pile_; 180 scoped_refptr<PicturePileImpl> picture_pile_;
179 gfx::Rect tile_size_; 181 gfx::Rect tile_size_;
180 gfx::Rect content_rect_; 182 gfx::Rect content_rect_;
181 float contents_scale_; 183 float contents_scale_;
182 gfx::Rect opaque_rect_; 184 gfx::Rect opaque_rect_;
183 bool is_occluded_[NUM_TREES]; 185 bool is_occluded_[NUM_TREES];
184 186
185 TilePriority priority_[NUM_TREES]; 187 TilePriority priority_[NUM_TREES];
186 ManagedTileState managed_state_; 188 ManagedTileState managed_state_;
187 int layer_id_; 189 int layer_id_;
188 int source_frame_number_; 190 int source_frame_number_;
189 int flags_; 191 int flags_;
190 192
191 Id id_; 193 Id id_;
192 static Id s_next_id_; 194 static Id s_next_id_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(Tile); 196 DISALLOW_COPY_AND_ASSIGN(Tile);
195 }; 197 };
196 198
197 } // namespace cc 199 } // namespace cc
198 200
199 #endif // CC_RESOURCES_TILE_H_ 201 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/tile.cc » ('j') | cc/resources/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698