cc: Fix rasterize and record micro to only check layers with content.
commit6ad4d84511e57154877e0bfca3783cd844ae21bd
authorvmpstr <vmpstr@chromium.org>
Wed, 19 Nov 2014 19:38:32 +0000 (19 11:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Nov 2014 19:38:48 +0000 (19 19:38 +0000)
tree72ede168c0c1411fb56fa9241b5b5c0bcc67be6e
parent3b831c18a450e93dd657b8c926fd4da7648d9fbe
cc: Fix rasterize and record micro to only check layers with content.

This patch replaces a check that checked whether the layer draws content
with a check to see if the layer can have tilings. There are more
conditions that can cause the layer not to have tilings (solid color,
no recordings). Some of those situations can cause crashes if we
create tilings anyway, so the fix is to check CanHaveTilings directly.

BUG=434478
R=enne

Review URL: https://codereview.chromium.org/741783002

Cr-Commit-Position: refs/heads/master@{#304866}
cc/debug/rasterize_and_record_benchmark_impl.cc
cc/layers/picture_layer_impl.h