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

Unified Diff: cc/resources/tile.h

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/picture_layer_tiling_set.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 4935cbc91a00a6a820c6fab55e80eaf5916b5169..c15c848a194b34d6eebfa10bb7a0608b99a0a036 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -45,18 +45,9 @@ class CC_EXPORT Tile {
return !!(flags_ & USE_PICTURE_ANALYSIS);
}
- bool HasResource() const { return draw_info_.has_resource(); }
- bool NeedsRaster() const {
- return draw_info_.mode() == TileDrawInfo::OOM_MODE ||
- !draw_info_.IsReadyToDraw();
- }
-
void AsValueInto(base::trace_event::TracedValue* value) const;
- inline bool IsReadyToDraw() const { return draw_info_.IsReadyToDraw(); }
-
const TileDrawInfo& draw_info() const { return draw_info_; }
-
TileDrawInfo& draw_info() { return draw_info_; }
float contents_scale() const { return contents_scale_; }
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698