forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert of Remove cullRect() from PaintOpBuffer. (patchset chromium#6 …
…id:100001 of https://codereview.chromium.org/2889653002/ ) Reason for revert: Seems to have introduced a use-of-uninitialized-value, making lots of tests fail on MSan bots: https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20MSan%20Tests https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20ChromiumOS%20MSan%20Tests Original issue's description: > Remove cullRect() from PaintOpBuffer. > > Pass it directly to RecordPaintCanvas and ToSkPicture, and other skia > methods which is where it is used. > > This allows us to more easily get rid of cc::DisplayItem and its > subclasses, replacing them with a PaintOpBuffer in DisplayItemList > directly instead. The difficulty I faced with that was that if > DisplayItemList has a single PaintOpBuffer, then it has a single > cull rect. However when painting, each "batch" of PaintOps can > have a different cull rect (corresponding to the PaintOps that > would have been in a single DisplayItem before). So, instead the > cull rect should be a property of recording at the > RecordPaintCanvas level, which is a temporary object. As such, > creators of cc::RecordPaintCanvas (mostly thru cc::PaintRecorder) > need to manage the cull rect themselves to pass to things that > want to use it with the cc::PaintOpBuffer (aka cc::PaintRecord at > this time). > > Original code review was done on gerrit: > https://chromium-review.googlesource.com/c/503472 > > R=chrishtr@chromium.org, enne@chromium.org, pdr@chromium.org > BUG=671433, 646010 > CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 > > Review-Url: https://codereview.chromium.org/2889653002 . > Cr-Commit-Position: refs/heads/master@{#472917} > Committed: https://chromium.googlesource.com/chromium/src/+/c5f1b6126a7657234b9abc0c4359cbab45850b69 TBR=chrishtr@chromium.org,enne@chromium.org,pdr@chromium.org,danakj@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=671433, 646010 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2894843002 Cr-Commit-Position: refs/heads/master@{#473164}
- Loading branch information
treib
authored and
Commit bot
committed
May 19, 2017
1 parent
8e46baf
commit ba67e74
Showing
67 changed files
with
295 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.