cc: Fix DCHECK in PictureLayer::PushPropertiesTo
commitabe5134c4fca11b98e4f8eea59843b459b68e103
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 22:04:38 +0000 (28 22:04 +0000)
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 22:04:38 +0000 (28 22:04 +0000)
treec30436a743cd49a0c2e6b31184345860d9b5e193
parent0d784792f432a058824d332d3cd7f4f2617f2092
cc: Fix DCHECK in PictureLayer::PushPropertiesTo

The DCHECK will only hold if PictureLayer::Update is called
in that frame. DrawContents is not enough since there are
other cases in LayerTreeHostCommon::LayerShouldBeSkipped
that causes Update to be skipped.

Instead keep track of the frame number when Update was
and compare it to the current frame number.

BUG=311311

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231421 0039d316-1c4b-4281-b951-d872f2087c98
cc/layers/picture_layer.cc
cc/layers/picture_layer.h