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

Unified Diff: cc/resources/tile.cc

Issue 1139673008: cc: Make IsReadyToDraw/NeedsRaster usage consistent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_draw_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index ec80dbb2bf56c79c3888d3090f1e63101e887937..7b98218071788fa6bd89cddeb34d30b862454710 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -56,13 +56,11 @@ void Tile::AsValueInto(base::trace_event::TracedValue* value) const {
draw_info_.AsValueInto(value);
value->EndDictionary();
- value->SetBoolean("has_resource", HasResource());
- value->SetBoolean("is_using_gpu_memory", HasResource() || HasRasterTask());
-
+ value->SetBoolean("has_resource", draw_info().has_resource());
+ value->SetBoolean("is_using_gpu_memory",
+ draw_info().has_resource() || HasRasterTask());
value->SetInteger("scheduled_priority", scheduled_priority_);
-
value->SetBoolean("use_picture_analysis", use_picture_analysis());
-
value->SetInteger("gpu_memory_usage", GPUMemoryUsageInBytes());
}
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_draw_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698