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

Issue 1412593003: Remove WebGraphicsContext/WebGraphicsContextImpl (Closed)

Created:
5 years, 1 month ago by Xianzhu
Modified:
4 years, 7 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WebGraphicsContext/WebGraphicsContextImpl We used it to pass GraphicsContext from PageOverlay to PageOverlay::Delegete implementors. Pass GraphicsContext directly. Skip cache in InspectorOverlay because view painted for the overlay may conflict with the view's real painting. BUG=536999 R=chrishtr@chromium.org TBR=dpranke@chromium.org (remove an extra include from src/components/test_runner.cc) Committed: https://crrev.com/bc449085148e77c472250047afce48ca8f0aa46d Cr-Commit-Position: refs/heads/master@{#357148}

Patch Set 1 #

Patch Set 2 : Remove another include WebGraphicsContext.h #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -185 lines) Patch
M components/test_runner/test_runner.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 2 chunks +4 lines, -3 lines 5 comments Download
M third_party/WebKit/Source/web/PageOverlay.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlayTest.cpp View 4 chunks +8 lines, -45 lines 0 comments Download
D third_party/WebKit/Source/web/WebGraphicsContextImpl.h View 1 chunk +0 lines, -46 lines 0 comments Download
D third_party/WebKit/Source/web/WebGraphicsContextImpl.cpp View 1 chunk +0 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 3 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/public/web/WebGraphicsContext.h View 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Xianzhu
5 years, 1 month ago (2015-10-30 00:00:17 UTC) #2
chrishtr
lgtm
5 years, 1 month ago (2015-10-30 00:17:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412593003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412593003/1
5 years, 1 month ago (2015-10-30 00:18:23 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/116146) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-10-30 00:30:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412593003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412593003/20001
5 years, 1 month ago (2015-10-30 15:39:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/114320)
5 years, 1 month ago (2015-10-30 15:48:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412593003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412593003/20001
5 years, 1 month ago (2015-10-30 15:50:23 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-10-30 18:42:58 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/bc449085148e77c472250047afce48ca8f0aa46d Cr-Commit-Position: refs/heads/master@{#357148}
5 years, 1 month ago (2015-10-30 18:44:53 UTC) #17
chrishtr
https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode118 third_party/WebKit/Source/web/InspectorOverlay.cpp:118: DisplayItemCacheSkipper cacheSkipper(graphicsContext); I'm encountering this again in the context ...
4 years, 7 months ago (2016-05-05 16:10:44 UTC) #18
Xianzhu
https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode118 third_party/WebKit/Source/web/InspectorOverlay.cpp:118: DisplayItemCacheSkipper cacheSkipper(graphicsContext); On 2016/05/05 16:10:43, chrishtr wrote: > I'm ...
4 years, 7 months ago (2016-05-05 16:27:52 UTC) #19
chrishtr
https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode118 third_party/WebKit/Source/web/InspectorOverlay.cpp:118: DisplayItemCacheSkipper cacheSkipper(graphicsContext); On 2016/05/05 at 16:27:52, Xianzhu wrote: > ...
4 years, 7 months ago (2016-05-05 16:30:08 UTC) #20
Xianzhu
https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp File third_party/WebKit/Source/web/InspectorOverlay.cpp (right): https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Source/web/InspectorOverlay.cpp#newcode118 third_party/WebKit/Source/web/InspectorOverlay.cpp:118: DisplayItemCacheSkipper cacheSkipper(graphicsContext); On 2016/05/05 16:30:07, chrishtr wrote: > On ...
4 years, 7 months ago (2016-05-05 16:47:33 UTC) #21
chrishtr
4 years, 7 months ago (2016-05-05 16:53:05 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/web/InspectorOverlay.cpp (right):

https://codereview.chromium.org/1412593003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/web/InspectorOverlay.cpp:118: DisplayItemCacheSkipper
cacheSkipper(graphicsContext);
On 2016/05/05 at 16:47:33, Xianzhu wrote:
> On 2016/05/05 16:30:07, chrishtr wrote:
> > On 2016/05/05 at 16:27:52, Xianzhu wrote:
> > > On 2016/05/05 16:10:43, chrishtr wrote:
> > > > I'm encountering this again in the context of investigation into issue
> > 592915.
> > > > This is the only
> > > > place other than BoxPainter (for painting theme content) that this is
used,
> > so
> > > > I'm looking into
> > > > getting rid of both.
> > > > 
> > > > Why is this necessary again? Why would the PaintController for this
overlay
> > be
> > > > shared with the
> > > > main page?
> > > 
> > > The comment seems a bit misleading. The real reason of cache skipper here
is
> > that we never invalidate display items in this paint controller when the
display
> > items are invalidated, so we must assume that all display items are invalid.
> > Another choice (which seems more correct) is to clear the paint controller
> > before painting in PageOverlay::paintContents().
> > 
> > But where does this PaintController come from? Isn't it new'ed up on every
paint
> > in these cases?
> 
> Read more code and I found I misunderstood InspectorOverlay. I thought it
painted the inspected frame in some way, but actually it paints
InspectorOverlayPage.html, so this won't conflict with the inspected frame, and
the cache skipper should not be needed.

Ok I'll put up a patch to remove this then.

Powered by Google App Engine
This is Rietveld 408576698