Revert of Fix bug in plot locking system (patchset #3 id:80001 of https://codereview...
authorrobertphillips <robertphillips@google.com>
Thu, 9 Oct 2014 19:47:01 +0000 (12:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Oct 2014 19:47:01 +0000 (12:47 -0700)
commita32c6bce1b726b6038b97bb64daf8b1fb1eb94e0
tree1d1b0904b078a88c609898c1ae9f48ddb7ead673
parente01844540a1d7ab8d768c2b6ccacfcaf23489d51
Revert of Fix bug in plot locking system (patchset #3 id:80001 of https://codereview.chromium.org/640323002/)

Reason for revert:
Failing unit tests

Original issue's description:
> Fix bug in plot locking system
>
> In the new MultiPictureDraw tests a single hoisted layer is reused multiple times. The previous plot locking scheme allowed GrCachedLayer objects to be aggressively deleted prematurely leaving the reusing GrHoistedLayer objects with dangling pointers.
>
> This CL changes the plot locking system to add a pseudo-ref for each GrHoistedLayer.
>
> NOTRY=true
>
> Committed: https://skia.googlesource.com/skia/+/5c481666c9678f43e039ad605457be3854cf8de3

TBR=jvanverth@google.com
NOTREECHECKS=true
NOTRY=true

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