Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(987)

Issue 997113004: Revert of Fix ASSERT(m_canvas) failures when contextDisabled() (Closed)

Created:
5 years, 9 months ago by Xianzhu
Modified:
5 years, 9 months ago
CC:
blink-reviews, Rik, danakj, Dominik Röttsches, dshwang, krit, jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revert 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -23 lines) Patch
M Source/platform/graphics/GraphicsContext.cpp View 1 59 chunks +223 lines, -23 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Xianzhu
Created Revert of Fix ASSERT(m_canvas) failures when contextDisabled()
5 years, 9 months ago (2015-03-11 16:19:26 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/997113004/1
5 years, 9 months ago (2015-03-11 16:19:46 UTC) #2
commit-bot: I haz the power
Failed to apply patch for Source/platform/graphics/GraphicsContext.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 9 months ago (2015-03-11 16:20:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/997113004/40001
5 years, 9 months ago (2015-03-11 16:53:08 UTC) #7
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 16:53:39 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191716

Powered by Google App Engine
This is Rietveld 408576698