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

Unified Diff: cc/tiles/tile.h

Issue 2334003007: cc: Mark tiles as processed for solid color analysis. (Closed)
Patch Set: update 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.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..b504ea1160d1f81851d8fb987a820a840a863f7e 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;
@@ -134,6 +141,7 @@ class CC_EXPORT Tile {
const int tiling_j_index_;
bool required_for_activation_ : 1;
bool required_for_draw_ : 1;
+ bool is_solid_color_analysis_performed_ : 1;
Id id_;
@@ -144,7 +152,6 @@ class CC_EXPORT Tile {
Id invalidated_id_;
unsigned scheduled_priority_;
-
scoped_refptr<TileTask> raster_task_;
DISALLOW_COPY_AND_ASSIGN(Tile);
« no previous file with comments | « no previous file | cc/tiles/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698