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

Issue 2894843002: Revert of Remove cullRect() from PaintOpBuffer. (Closed)

Created:
3 years, 7 months ago by Marc Treib
Modified:
3 years, 7 months ago
CC:
apavlov+blink_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, caseq+blink_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, fmalita+watch_chromium.org, fs, gyuyoung2, jbauman+watch_chromium.org, jchaffraix+rendering, Justin Novosad, kalyank, kinuko+watch, kouhei+svg_chromium.org, kozyatinskiy+blink_chromium.org, leviw+renderwatch, lushnikov+blink_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pfeldman+blink_chromium.org, piman+watch_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, Ian Vollick, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Remove cullRect() from PaintOpBuffer. (patchset #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} Committed: https://chromium.googlesource.com/chromium/src/+/ba67e74fd455e9f581c1cffc503a2ad10e4e5fa9

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase2 #

Patch Set 4 : TestExpectations: NeedsRebaseline #

Patch Set 5 : rebase TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -399 lines) Patch
M cc/blink/web_display_item_list_impl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M cc/blink/web_display_item_list_impl.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M cc/layers/picture_image_layer.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M cc/paint/discardable_image_map_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/paint/display_item_list.cc View 1 2 chunks +7 lines, -7 lines 0 comments Download
M cc/paint/display_item_list_unittest.cc View 1 22 chunks +32 lines, -57 lines 0 comments Download
M cc/paint/drawing_display_item.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M cc/paint/drawing_display_item.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M cc/paint/paint_op_buffer.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M cc/paint/paint_op_buffer.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/paint/paint_op_buffer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/paint_record.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M cc/paint/paint_record.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M cc/paint/paint_recorder.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/paint/paint_shader.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M cc/paint/record_paint_canvas.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M cc/paint/record_paint_canvas.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 3 chunks +5 lines, -8 lines 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 6 chunks +6 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp View 1 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp View 1 1 chunk +22 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ClipPathClipper.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 5 chunks +22 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainterTest.cpp View 1 6 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 6 chunks +15 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/BoxReflection.h View 1 4 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/LoggingCanvas.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/LoggingCanvas.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h View 1 3 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp View 1 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Pattern.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Pattern.cpp View 1 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp View 1 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp View 1 2 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h View 1 2 chunks +2 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp View 1 3 chunks +24 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp View 1 3 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp View 1 1 chunk +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 chunks +5 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImpl.cpp View 1 2 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp View 1 2 7 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/WebDisplayItemList.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/compositor/paint_recorder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/paint_recorder.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
Marc Treib
Created Revert of Remove cullRect() from PaintOpBuffer.
3 years, 7 months ago (2017-05-19 09:28:58 UTC) #1
Marc Treib
I had to manually resolve some (trivial) conflicts with https://codereview.chromium.org/2893803002 in FrameThrottlingTest.cpp, so sending this ...
3 years, 7 months ago (2017-05-19 09:40:35 UTC) #7
Marc Treib
On 2017/05/19 09:40:35, Marc Treib wrote: > I had to manually resolve some (trivial) conflicts ...
3 years, 7 months ago (2017-05-19 11:55:59 UTC) #13
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/2894843002/330001
3 years, 7 months ago (2017-05-19 12:04:39 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 12:06:13 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/ba67e74fd455e9f581c1cffc503a...

Powered by Google App Engine
This is Rietveld 408576698