Revert "Fix need query for copyOnWrite for dual-proxies Ganesh images."
This reverts commit d35cf182427378dfb42b4d5298bea0f5a0dd9f2f.
Reason for revert: maybe breaking android roll
Original change's description:
> Fix need query for copyOnWrite for dual-proxies Ganesh images.
>
> The ProxyChooser class picks the volatile vs stable copy proxy based on
> the number of render tasks added to the volatile proxy since creation.
> However, if we are drawing the snapped image into the same surface,
> in device_DrawTexture we get the src view before we actually create the
> new task for the draw image. Thus the Chooser thinks it is still safe
> to return the volatile proxy for the src.
>
> This change updates the ProxyChooser surfaceMustCopyOnWrite call,
> which is made earlier, to also check if the volatile proxy matches
> the surface.
>
> Bug: b/387306744
> Change-Id: Ib8ab2692ef303252ddd4b0798b1b6cb3caf52862
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/960616
> Reviewed-by: Michael Ludwig <[email protected]>
> Commit-Queue: Greg Daniel <[email protected]>
Bug: b/387306744
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: If51a81c88bf5315883d6b2db909146fc2e100c37
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/960816
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Greg Daniel <[email protected]>
2 files changed