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

Unified Diff: cc/resources/tile_draw_info.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_draw_info.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_draw_info.cc
diff --git a/cc/resources/tile_draw_info.cc b/cc/resources/tile_draw_info.cc
index e75ea59ef84526f66498ca3688cbf457b34fb015..4545494155c349a122e144c9bf011c58d9bf9c8b 100644
--- a/cc/resources/tile_draw_info.cc
+++ b/cc/resources/tile_draw_info.cc
@@ -16,18 +16,6 @@ TileDrawInfo::~TileDrawInfo() {
DCHECK(!resource_);
}
-bool TileDrawInfo::IsReadyToDraw() const {
- switch (mode_) {
- case RESOURCE_MODE:
- return !!resource_;
- case SOLID_COLOR_MODE:
- case OOM_MODE:
- return true;
- }
- NOTREACHED();
- return false;
-}
-
void TileDrawInfo::AsValueInto(base::trace_event::TracedValue* state) const {
state->SetBoolean("is_solid_color", mode_ == SOLID_COLOR_MODE);
state->SetBoolean("is_transparent",
« no previous file with comments | « cc/resources/tile_draw_info.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698