|
|
Chromium Code Reviews|
Created:
5 years, 8 months ago by chrishtr Modified:
5 years, 8 months ago CC:
blink-reviews, Rik, danakj, Dominik Röttsches, dshwang, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney Base URL:
svn://svn.chromium.org/blink/trunk Target Ref:
refs/heads/master Project:
blink Visibility:
Public. |
Description[SP] Allocate an SkPictureRecorder only once per GraphicsContext instantiation
This should be a lot faster than before, since Skia optimizes for
quickly allocating new SkCanvases within the same recorder.
BUG=470553
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193985
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Messages
Total messages: 35 (14 generated)
chrishtr@chromium.org changed reviewers: + mtklein@chromium.org
fmalita@chromium.org changed reviewers: + fmalita@chromium.org
https://codereview.chromium.org/1087633002/diff/1/Source/platform/graphics/Gr... File Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1087633002/diff/1/Source/platform/graphics/Gr... Source/platform/graphics/GraphicsContext.h:446: OwnPtr<SkPictureRecorder> m_pictureRecorder; This has the same lifetime as GC - can we drop the OwnPtr wrapper and just store a straight SkPictureRecorder instead?
https://codereview.chromium.org/1087633002/diff/1/Source/platform/graphics/Gr... File Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1087633002/diff/1/Source/platform/graphics/Gr... Source/platform/graphics/GraphicsContext.h:446: OwnPtr<SkPictureRecorder> m_pictureRecorder; On 2015/04/13 at 21:39:45, f(malita) wrote: > This has the same lifetime as GC - can we drop the OwnPtr wrapper and just store a straight SkPictureRecorder instead? Done.
LGTM. We should be able to get rid of the recording stack too, but it requires sorting out some nesting issues first (I started on that a few days back, but run into some complications and got distracted - need to pick it up again).
On 2015/04/13 at 21:52:31, fmalita wrote: > LGTM. > > We should be able to get rid of the recording stack too, but it requires sorting out some nesting issues first (I started on that a few days back, but run into some complications and got distracted - need to pick it up again). Getting rid of the stack is a side-effect of SP also. (Mentioning to save you time, since it'll come for free.)
lgtm
The CQ bit was checked by chrishtr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087633002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/59024)
The CQ bit was checked by chrishtr@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from fmalita@chromium.org, mtklein@chromium.org Link to the patchset: https://codereview.chromium.org/1087633002/#ps40001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087633002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/bu...)
The CQ bit was checked by chrishtr@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from fmalita@chromium.org, mtklein@chromium.org Link to the patchset: https://codereview.chromium.org/1087633002/#ps60001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087633002/60001
I changed the code a little bit to account for cases where the GraphicsContext is constructed with a non-null SkCanvas.
chrishtr@chromium.org changed reviewers: + pdr@chromium.org
The failing tests are due to SVG filters using nested recordings within one GraphicsContext, which is now illegal with Slimming Paint.
The CQ bit was unchecked by commit-bot@chromium.org
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/5...)
On 2015/04/14 at 23:17:33, commit-bot wrote: > 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/5...) This should be good to go once https://codereview.chromium.org/1089293002 lands
The CQ bit was checked by pdr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087633002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/59604)
The CQ bit was checked by pdr@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087633002/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193985
Message was sent while issue was closed.
On 2015/04/18 at 17:08:28, commit-bot wrote: > Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193985 Woohoo! |
