Add additional clean up code in MPD path
authorrobertphillips <robertphillips@google.com>
Mon, 1 Dec 2014 19:39:59 +0000 (11:39 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Dec 2014 19:39:59 +0000 (11:39 -0800)
commitbc0c4bd9dff5c7be1a0845ef0d5cc3f4faaef5f3
tree9159b4a543ae890784b132883ffe686613c0d49f
parentca92fbd029518c1fb0f568d21e5a58008923e14f
Add additional clean up code in MPD path

This addresses an edge case where a picture only has one layer which is atlasable but doesn't make it into the atlas. In this case asserts can fire since there is no atlased layer to clean up the tracking picture object.

Review URL: https://codereview.chromium.org/764393002
src/gpu/GrLayerCache.cpp