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

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)

Created:
3 years, 7 months ago by vmpstr
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, fs, gyuyoung2, haraken, jam, kinuko+watch, kouhei+svg_chromium.org, miu+watch_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move SkShader construction to a single spot in PaintShader This patch moves SkShader construction to be only in PaintShader (for the purposes of paint, at least). This ensures that we can transport all of the relevant parameters required for the shader and defer construction until raster. BUG=728359 R=enne@chromium.org 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/2893083002 Cr-Original-Commit-Position: refs/heads/master@{#477810} Committed: https://chromium.googlesource.com/chromium/src/+/cda52d0cc0fea52b996fce1663a8de5141fe48c3 Review-Url: https://codereview.chromium.org/2893083002 Cr-Commit-Position: refs/heads/master@{#478095} Committed: https://chromium.googlesource.com/chromium/src/+/7b99c95846da32cdb1060f59a1a1f5bd27ab2696

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update #

Total comments: 2

Patch Set 4 : update #

Total comments: 13

Patch Set 5 : update #

Patch Set 6 : update #

Patch Set 7 : update #

Patch Set 8 : fallback #

Patch Set 9 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -165 lines) Patch
M ash/touch_hud/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/touch_hud/touch_hud_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/paint/discardable_image_map_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M cc/paint/discardable_image_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/paint_flags.h View 1 2 3 4 5 6 3 chunks +16 lines, -5 lines 0 comments Download
M cc/paint/paint_flags.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/paint_op_buffer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/paint_op_buffer_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M cc/paint/paint_shader.h View 1 2 3 4 1 chunk +77 lines, -17 lines 0 comments Download
A cc/paint/paint_shader.cc View 1 2 3 4 1 chunk +115 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/aura/shadow_layer_delegate.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.h View 1 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.cpp View 1 2 3 4 5 6 7 7 chunks +40 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 1 2 3 4 5 4 chunks +16 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImagePattern.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImagePattern.cpp View 1 2 3 4 2 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h View 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Pattern.h View 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Pattern.cpp View 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintShader.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gfx/render_text.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
M ui/gfx/skia_paint_util.h View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M ui/gfx/skia_paint_util.cc View 1 2 3 4 3 chunks +18 lines, -15 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M ui/views/color_chooser/color_chooser_view.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/scrollbar/cocoa_scroll_bar.mm View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 68 (37 generated)
vmpstr
This is kind of the approach I'm taking... Not sure if there are better ideas, ...
3 years, 7 months ago (2017-05-19 23:00:39 UTC) #5
vmpstr
PTAL. paint_shader.h ctors seems to be the minimum set of things that we construct. This ...
3 years, 7 months ago (2017-05-23 18:15:18 UTC) #6
enne (OOO)
https://codereview.chromium.org/2893083002/diff/40001/third_party/WebKit/Source/platform/graphics/Gradient.cpp File third_party/WebKit/Source/platform/graphics/Gradient.cpp (right): https://codereview.chromium.org/2893083002/diff/40001/third_party/WebKit/Source/platform/graphics/Gradient.cpp#newcode170 third_party/WebKit/Source/platform/graphics/Gradient.cpp:170: flags.setShader(WTF::MakeUnique<PaintShader>(*cached_shader_)); This line is probably the one that's most ...
3 years, 7 months ago (2017-05-23 18:55:02 UTC) #7
vmpstr
PTAL. I think we discussed moving a few more checks from Gradient.cpp, or at least ...
3 years, 6 months ago (2017-05-31 20:24:57 UTC) #9
vmpstr
PTAL. I've moved the fallback color to paint shader here. For now, it still relies ...
3 years, 6 months ago (2017-06-02 20:17:22 UTC) #10
enne (OOO)
lgtm
3 years, 6 months ago (2017-06-02 20:23:45 UTC) #11
vmpstr
+pdr for blink +sky for chrome/ and ui/ +piman for content/ Please take a look.
3 years, 6 months ago (2017-06-02 20:28:04 UTC) #13
piman
https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_flags.h File cc/paint/paint_flags.h (right): https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_flags.h#newcode175 cc/paint/paint_flags.h:175: ALWAYS_INLINE void setShader(std::unique_ptr<PaintShader> shader) { Why are we taking ...
3 years, 6 months ago (2017-06-02 20:43:36 UTC) #14
vmpstr
(just comments; will upload a new patch set) https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_flags.h File cc/paint/paint_flags.h (right): https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_flags.h#newcode175 cc/paint/paint_flags.h:175: ALWAYS_INLINE ...
3 years, 6 months ago (2017-06-02 20:52:00 UTC) #16
pdr.
third_party/WebKit LGTM
3 years, 6 months ago (2017-06-02 21:08:19 UTC) #17
pdr.
third_party/WebKit LGTM
3 years, 6 months ago (2017-06-02 21:08:19 UTC) #18
pdr.
On 2017/06/02 at 21:08:19, pdr. wrote: > third_party/WebKit LGTM Oops, let me take this one ...
3 years, 6 months ago (2017-06-02 21:09:15 UTC) #19
sky
On 2017/06/02 21:09:15, pdr. wrote: > On 2017/06/02 at 21:08:19, pdr. wrote: > > third_party/WebKit ...
3 years, 6 months ago (2017-06-02 22:38:53 UTC) #20
sky
LGTM https://codereview.chromium.org/2893083002/diff/60001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/2893083002/diff/60001/chrome/browser/ui/views/tabs/tab.cc#newcode121 chrome/browser/ui/views/tabs/tab.cc:121: flags.setShader(base::MakeUnique<cc::PaintShader>( include base/memory/ptr_util.h? https://codereview.chromium.org/2893083002/diff/60001/ui/gfx/skia_paint_util.h File ui/gfx/skia_paint_util.h (right): https://codereview.chromium.org/2893083002/diff/60001/ui/gfx/skia_paint_util.h#newcode28 ...
3 years, 6 months ago (2017-06-02 22:51:05 UTC) #21
vmpstr
PTAL https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_shader.h File cc/paint/paint_shader.h (right): https://codereview.chromium.org/2893083002/diff/60001/cc/paint/paint_shader.h#newcode30 cc/paint/paint_shader.h:30: SkColor fallback_color = SK_ColorTRANSPARENT); On 2017/06/02 20:52:00, vmpstr ...
3 years, 6 months ago (2017-06-05 21:02:07 UTC) #22
vmpstr
+junov for third_party/WebKit/Source/modules/canvas2d/ as well. Please take a look.
3 years, 6 months ago (2017-06-05 21:03:02 UTC) #24
piman
lgtm
3 years, 6 months ago (2017-06-05 21:07:29 UTC) #25
vmpstr
ping junov, could you please take a look?
3 years, 6 months ago (2017-06-06 20:04:20 UTC) #26
vmpstr
+senorblanco for third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp as well. Please take a look.
3 years, 6 months ago (2017-06-07 17:07:14 UTC) #28
Stephen White
On 2017/06/07 17:07:14, vmpstr wrote: > +senorblanco for > third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp as well. > Please take ...
3 years, 6 months ago (2017-06-07 17:23:22 UTC) #29
Justin Novosad
lgtm
3 years, 6 months ago (2017-06-07 17:24:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893083002/80001
3 years, 6 months ago (2017-06-07 17:25:58 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/285225) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-07 17:37:55 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893083002/140001
3 years, 6 months ago (2017-06-07 23:12:27 UTC) #50
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/cda52d0cc0fea52b996fce1663a8de5141fe48c3
3 years, 6 months ago (2017-06-07 23:54:21 UTC) #53
Sam McNally
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2928703005/ by sammc@chromium.org. ...
3 years, 6 months ago (2017-06-08 00:29:48 UTC) #54
findit-for-me
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 477810 as the culprit for failures in the ...
3 years, 6 months ago (2017-06-08 00:42:51 UTC) #55
vmpstr
I had to add //cc/paint to ash/touch_hud/BUILD.gn. sky@ do you mind taking another look at ...
3 years, 6 months ago (2017-06-08 18:20:08 UTC) #57
sky
ash LGTM
3 years, 6 months ago (2017-06-08 21:22:17 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893083002/160001
3 years, 6 months ago (2017-06-08 21:24:36 UTC) #64
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 21:40:20 UTC) #68
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/7b99c95846da32cdb1060f59a1a1...

Powered by Google App Engine
This is Rietveld 408576698