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

Issue 2863673002: cc: Fix data race in PaintOpBuffer by not mutating PaintOps. (Closed)

Created:
3 years, 7 months ago by danakj
Modified:
3 years, 7 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, vmpstr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix data race in PaintOpBuffer by not mutating PaintOps. Raster can be done on multiple threads at once, so it is not okay to mutate a PaintOp while doing raster. This fixes the case of RasterWithAlpha needing to change the PaintFlags back to having it make a copy. To do this, we add a RasterWithFlags() static method to each subclass of PaintOpWithFlags, and call that directly with the modified flags when needed. These subclasses still need to provide a Raster() method which just passes the |flags| member thru to the RasterWithFlags(). Before MonochromePublic.apk: 79,762,639 bytes After MonochromePublic.apk: 79,762,639 bytes R=enne@chromium.org BUG=718309 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2863673002 Cr-Commit-Position: refs/heads/master@{#469450} Committed: https://chromium.googlesource.com/chromium/src/+/92d629556f9aecd90a2af9785d1a5713dd15b0ba

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -88 lines) Patch
M cc/paint/paint_op_buffer.h View 17 chunks +132 lines, -15 lines 0 comments Download
M cc/paint/paint_op_buffer.cc View 7 chunks +90 lines, -73 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
danakj
3 years, 7 months ago (2017-05-04 17:56:16 UTC) #2
enne (OOO)
lgtm
3 years, 7 months ago (2017-05-04 18:01:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2863673002/1
3 years, 7 months ago (2017-05-04 19:05:28 UTC) #5
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 20:29:56 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/92d629556f9aecd90a2af9785d1a...

Powered by Google App Engine
This is Rietveld 408576698