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

Issue 867063004: [Slimming Paint] Paint the inspector overlay with GraphicsLayer DisplayList. (Closed)

Created:
5 years, 11 months ago by jbroman
Modified:
5 years, 10 months ago
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, blink-reviews, Rik, caseq+blink_chromium.org, danakj, devtools-reviews_chromium.org, Dominik Röttsches, krit, eustas+blink_chromium.org, f(malita), loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pdr+graphicswatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Slimming Paint] Paint the inspector overlay with GraphicsLayer DisplayList. Since some overlays are implemented in Chromium using WebCanvas, this makes blink::PageOverlay capable of being painted with either DisplayList or WebCanvas (in the latter case, one DrawingDisplayItem is emitted). Makes the inspector overlay work with slimming paint enabled. Only one GraphicsLayer is used, and only full invalidation is here right now, but adding partial invalidation support will likely come "for free" when compositor layerization is implemented. Also adds unit tests for overlay painting. I'd also like to have a LayoutTest which uses the proper inspector overlay, but that's probably a separate patch (requires insight from dev tools folk). BUG=450761 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189950

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebaseline canvas repainting test for slimming paint due to workaround #

Patch Set 5 : incomplete - tests which ensure that overlays paint (which work with --enable-slimming-paint) #

Patch Set 6 : WIP: PageOverlay meets Slimming Paint #

Patch Set 7 : #

Patch Set 8 : trimmed somewhat #

Patch Set 9 : rebase etc #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : rebase #

Patch Set 17 : WebGraphicsContext (per wangxianzhu) #

Patch Set 18 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -80 lines) Patch
A + LayoutTests/compositing/visibility/overlays.html View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/compositing/visibility/overlays-expected.html View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/PageOverlay.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +14 lines, -3 lines 0 comments Download
M Source/web/PageOverlay.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +14 lines, -47 lines 0 comments Download
M Source/web/PageOverlayList.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/PageOverlayList.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -0 lines 0 comments Download
A Source/web/PageOverlayTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +236 lines, -0 lines 0 comments Download
M Source/web/WebDevToolsAgentImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 2 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -20 lines 0 comments Download
A Source/web/WebGraphicsContextImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +46 lines, -0 lines 2 comments Download
A Source/web/WebGraphicsContextImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +46 lines, -0 lines 0 comments Download
A Source/web/WebPageOverlay.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +30 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -0 lines 0 comments Download
A public/web/WebGraphicsContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +27 lines, -0 lines 2 comments Download
M public/web/WebPageOverlay.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
jbroman
Someone else already fixed the crash issue, but I'd still like to land this: drawing ...
5 years, 10 months ago (2015-02-09 15:06:35 UTC) #2
Xianzhu
I like this kind of improvement, but I think it would be better to avoid ...
5 years, 10 months ago (2015-02-09 17:57:11 UTC) #3
jbroman
On 2015/02/09 17:57:11, Xianzhu wrote: > I like this kind of improvement, but I think ...
5 years, 10 months ago (2015-02-09 18:13:37 UTC) #4
Xianzhu
On 2015/02/09 18:13:37, jbroman wrote: > On 2015/02/09 17:57:11, Xianzhu wrote: > > I like ...
5 years, 10 months ago (2015-02-09 18:41:04 UTC) #5
jbroman
On 2015/02/09 18:41:04, Xianzhu wrote: > Or can we just simply extend WebCanvas: > > ...
5 years, 10 months ago (2015-02-09 18:44:02 UTC) #6
jbroman
Alright, refactored to add a GraphicsContext/WebCanvas shim type to the Blink API as requested. This ...
5 years, 10 months ago (2015-02-09 23:44:22 UTC) #7
jbroman
On 2015/02/09 23:44:22, jbroman wrote: > Alright, refactored to add a GraphicsContext/WebCanvas shim type to ...
5 years, 10 months ago (2015-02-10 23:29:12 UTC) #8
Xianzhu
lgtm (non-owner). https://codereview.chromium.org/867063004/diff/340001/Source/web/WebDevToolsAgentImpl.h File Source/web/WebDevToolsAgentImpl.h (right): https://codereview.chromium.org/867063004/diff/340001/Source/web/WebDevToolsAgentImpl.h#newcode50 Source/web/WebDevToolsAgentImpl.h:50: class IntPoint; Nit: Is this used? https://codereview.chromium.org/867063004/diff/340001/public/web/WebGraphicsContext.h ...
5 years, 10 months ago (2015-02-10 23:34:02 UTC) #9
pdr.
https://codereview.chromium.org/867063004/diff/340001/Source/web/WebGraphicsContextImpl.h File Source/web/WebGraphicsContextImpl.h (right): https://codereview.chromium.org/867063004/diff/340001/Source/web/WebGraphicsContextImpl.h#newcode1 Source/web/WebGraphicsContextImpl.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 10 months ago (2015-02-10 23:47:09 UTC) #10
jbroman
tl;dr: Yes, we could merge them, but complications arise, and I think this is cleaner ...
5 years, 10 months ago (2015-02-11 00:32:55 UTC) #11
pdr.
LGTM
5 years, 10 months ago (2015-02-11 00:44:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/867063004/340001
5 years, 10 months ago (2015-02-11 05:46:28 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-11 05:51:51 UTC) #15
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189950

Powered by Google App Engine
This is Rietveld 408576698