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

Issue 1145843003: Fix Slimming Paint WebGL printing (Closed)

Created:
5 years, 7 months ago by Stephen Chennney
Modified:
5 years, 7 months ago
CC:
blink-reviews, Rik, danakj, dshwang, krit, f(malita), jbroman, pdr+graphicswatchlist_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix Slimming Paint WebGL printing Slimming Paint uses a recording canvas when printing, which triggered an assert in GraphcisContext::drawBitmapRect which previously did not trigger because we were not recording when printing. This patch modifies the assert to check for printing, when we are only recording temporarily before immediate playback into a canvas on the main thread. The patch also modifies DisplayItemListRecorderContext to copy global properties fromt he primary context to the temporary recording context. R=danakj@chromium.org,chrishtr@chromium.org BUG=471100 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195818

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better fix? #

Patch Set 3 : Agreed upon version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/graphics/paint/DisplayItemListContextRecorder.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145843003/1
5 years, 7 months ago (2015-05-19 21:09:34 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-19 22:26:55 UTC) #4
Stephen Chennney
Fixing WebGL printing.
5 years, 7 months ago (2015-05-20 13:52:35 UTC) #5
chrishtr
https://codereview.chromium.org/1145843003/diff/1/Source/platform/graphics/GraphicsContext.cpp File Source/platform/graphics/GraphicsContext.cpp (right): https://codereview.chromium.org/1145843003/diff/1/Source/platform/graphics/GraphicsContext.cpp#newcode1102 Source/platform/graphics/GraphicsContext.cpp:1102: ASSERT(!isRecording() || !bitmap.getTexture() || printing()); I assume that when ...
5 years, 7 months ago (2015-05-20 18:20:40 UTC) #6
Stephen Chennney
https://codereview.chromium.org/1145843003/diff/1/Source/platform/graphics/GraphicsContext.cpp File Source/platform/graphics/GraphicsContext.cpp (right): https://codereview.chromium.org/1145843003/diff/1/Source/platform/graphics/GraphicsContext.cpp#newcode1102 Source/platform/graphics/GraphicsContext.cpp:1102: ASSERT(!isRecording() || !bitmap.getTexture() || printing()); On 2015/05/20 18:20:40, chrishtr ...
5 years, 7 months ago (2015-05-20 18:30:14 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145843003/20001
5 years, 7 months ago (2015-05-20 21:00:26 UTC) #9
Stephen Chennney
So I added a check in HTMLCanvasElement::shouldAccelerate to turn of acceleration for printing, which seems ...
5 years, 7 months ago (2015-05-20 21:03:14 UTC) #11
danakj
LGTM
5 years, 7 months ago (2015-05-20 21:06:17 UTC) #13
chrishtr
Does WebGL printing also work now? e.g. if you just ctrl-p from Google Maps?
5 years, 7 months ago (2015-05-20 21:08:05 UTC) #14
Stephen Chennney
But not a better fix, because we still crash when printing WebGl content in the ...
5 years, 7 months ago (2015-05-20 21:09:32 UTC) #15
Stephen Chennney
On 2015/05/20 21:08:05, chrishtr wrote: > Does WebGL printing also work now? e.g. if you ...
5 years, 7 months ago (2015-05-20 21:29:28 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62448)
5 years, 7 months ago (2015-05-20 21:46:46 UTC) #18
chrishtr
On 2015/05/20 at 21:29:28, schenney wrote: > On 2015/05/20 21:08:05, chrishtr wrote: > > Does ...
5 years, 7 months ago (2015-05-20 22:39:47 UTC) #19
danakj
On Wed, May 20, 2015 at 3:39 PM, <chrishtr@chromium.org> wrote: > On 2015/05/20 at 21:29:28, ...
5 years, 7 months ago (2015-05-20 22:46:24 UTC) #20
Justin Novosad
On 2015/05/20 22:46:24, danakj wrote: > On Wed, May 20, 2015 at 3:39 PM, <mailto:chrishtr@chromium.org> ...
5 years, 7 months ago (2015-05-21 14:28:22 UTC) #21
Stephen Chennney
On 2015/05/21 14:28:22, Justin Novosad wrote: > On 2015/05/20 22:46:24, danakj wrote: > > On ...
5 years, 7 months ago (2015-05-21 16:45:48 UTC) #22
Justin Novosad
On 2015/05/21 16:45:48, Stephen Chenney wrote: > On 2015/05/21 14:28:22, Justin Novosad wrote: > > ...
5 years, 7 months ago (2015-05-22 01:18:56 UTC) #23
chrishtr
On 2015/05/22 at 01:18:56, junov wrote: > On 2015/05/21 16:45:48, Stephen Chenney wrote: > > ...
5 years, 7 months ago (2015-05-22 18:13:49 UTC) #24
Stephen Chennney
On 2015/05/22 18:13:49, chrishtr wrote: > On 2015/05/22 at 01:18:56, junov wrote: > > On ...
5 years, 7 months ago (2015-05-22 18:36:53 UTC) #25
chrishtr
On 2015/05/22 at 18:36:53, schenney wrote: > On 2015/05/22 18:13:49, chrishtr wrote: > > On ...
5 years, 7 months ago (2015-05-22 18:40:56 UTC) #26
Stephen Chennney
Agreed-upon fix up.
5 years, 7 months ago (2015-05-22 21:21:29 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145843003/40001
5 years, 7 months ago (2015-05-22 21:21:53 UTC) #30
Rik
Hi, I'm currently on sick leave. For urgent matters, please contact Jacob Goldstein or Ethan ...
5 years, 7 months ago (2015-05-22 21:21:58 UTC) #31
chrishtr
lgtm
5 years, 7 months ago (2015-05-22 21:21:59 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-22 23:03:11 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145843003/40001
5 years, 7 months ago (2015-05-22 23:04:01 UTC) #36
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 23:09:33 UTC) #37
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195818

Powered by Google App Engine
This is Rietveld 408576698