| Index: cc/trees/layer_tree_host_common.cc
|
| diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
|
| index f21ed3fb153db4bf4c06d3e7a787c719afff1091..7b1963e38f52410c1e535423fb7803ffa85f140c 100644
|
| --- a/cc/trees/layer_tree_host_common.cc
|
| +++ b/cc/trees/layer_tree_host_common.cc
|
| @@ -1202,30 +1202,12 @@ struct PreCalculateMetaInformationRecursiveData {
|
| }
|
| };
|
|
|
| -static bool ValidateRenderSurface(LayerImpl* layer) {
|
| - // There are a few cases in which it is incorrect to not have a
|
| - // render_surface.
|
| - if (layer->render_surface())
|
| - return true;
|
| -
|
| - return layer->filters().IsEmpty() && layer->background_filters().IsEmpty() &&
|
| - !layer->mask_layer() && !layer->replica_layer() &&
|
| - !IsRootLayer(layer) && !layer->is_root_for_isolated_group() &&
|
| - !layer->HasCopyRequest();
|
| -}
|
| -
|
| -static bool ValidateRenderSurface(Layer* layer) {
|
| - return true;
|
| -}
|
| -
|
| // Recursively walks the layer tree to compute any information that is needed
|
| // before doing the main recursion.
|
| template <typename LayerType>
|
| static void PreCalculateMetaInformation(
|
| LayerType* layer,
|
| PreCalculateMetaInformationRecursiveData* recursive_data) {
|
| - DCHECK(ValidateRenderSurface(layer));
|
| -
|
| layer->draw_properties().sorted_for_recursion = false;
|
| layer->draw_properties().has_child_with_a_scroll_parent = false;
|
|
|
|
|