|
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
|
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
|
Total messages: 18 (13 generated)
|