summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/picture_layer_impl.cc')
-rw-r--r--cc/layers/picture_layer_impl.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index d304b30..8dbfedd 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -281,7 +281,6 @@ void PictureLayerImpl::AppendQuads(
append_quads_data->visible_content_area +=
visible_geometry_rect.width() * visible_geometry_rect.height();
- bool has_draw_quad = false;
if (*iter && iter->IsReadyToDraw()) {
const ManagedTileState::TileVersion& tile_version =
iter->GetTileVersionForDrawing();
@@ -304,7 +303,6 @@ void PictureLayerImpl::AppendQuads(
texture_rect,
iter.texture_size(),
tile_version.contents_swizzled());
- has_draw_quad = true;
break;
}
case ManagedTileState::TileVersion::PICTURE_PILE_MODE: {
@@ -335,7 +333,6 @@ void PictureLayerImpl::AppendQuads(
iter->content_rect(),
iter->contents_scale(),
pile_);
- has_draw_quad = true;
break;
}
case ManagedTileState::TileVersion::SOLID_COLOR_MODE: {
@@ -346,13 +343,10 @@ void PictureLayerImpl::AppendQuads(
visible_geometry_rect,
tile_version.get_solid_color(),
false);
- has_draw_quad = true;
break;
}
}
- }
-
- if (!has_draw_quad) {
+ } else {
if (draw_checkerboard_for_missing_tiles()) {
CheckerboardDrawQuad* quad =
render_pass->CreateAndAppendDrawQuad<CheckerboardDrawQuad>();