DescriptionRevert of Fix ASSERT(m_canvas) failures when contextDisabled() (patchset #3 id:40001 of https://codereview.chromium.org/987383003/)
Reason for revert:
It seems that the presumption that contextDisabled is just a SP counterpart of non-SP's SkNullCanvas is wrong.
Original issue's description:
> Fix ASSERT(m_canvas) failures when contextDisabled()
>
> contextDisabled() is for performance tests to let GraphicsContext to
> draw nothing. In either slimming-paint mode or non-slimming-paint mode,
> we should check it at beginning of every drawing method of
> GraphicsContext to ensure the performance when contextDisabled() is
> as expected.
>
> Especially in slimming-paint mode, missing the check causes null
> dereference of m_canvas or ASSERT(m_canvas) failure.
>
> - Ensure contextDisabled() is checked in all drawing methods of
> GraphicsContext;
> - Use SkNullCanvas when contextDisabled() to ensure drawings directly
> using GraphicsContext::canvas() will not encounter null canvas and
> be also controled by contextDisabled().
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191673
TBR=chrishtr@chromium.org,fmalita@chromium.org,pdr@chromium.org,schenney@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191716
Patch Set 1 #Patch Set 2 : Rebase #Messages
Total messages: 8 (3 generated)
|