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

Unified Diff: cc/tiles/tile.h

Issue 2334003007: cc: Mark tiles as processed for solid color analysis. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.h
diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
index 76142e86699118f284d0e11acb86aba35ad80348..e9ec6afdaa3201e4ed9110ebe74328f0f4f8473a 100644
--- a/cc/tiles/tile.h
+++ b/cc/tiles/tile.h
@@ -107,6 +107,13 @@ class CC_EXPORT Tile {
bool HasRasterTask() const { return !!raster_task_.get(); }
+ void set_solid_color_analysis_performed(bool performed) {
+ is_solid_color_analysis_performed_ = performed;
+ }
+ bool is_solid_color_analysis_performed() const {
+ return is_solid_color_analysis_performed_;
+ }
+
private:
friend class TileManager;
friend class FakeTileManager;
@@ -144,8 +151,8 @@ class CC_EXPORT Tile {
Id invalidated_id_;
unsigned scheduled_priority_;
-
scoped_refptr<TileTask> raster_task_;
+ bool is_solid_color_analysis_performed_ = false;
enne (OOO) 2016/09/14 18:29:33 How about sticking this bool with the other bools
vmpstr 2016/09/14 18:48:12 Done.
DISALLOW_COPY_AND_ASSIGN(Tile);
};
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698