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

Issue 1831883002: Use sk_sp-based shader creation APIs (Closed)

Created:
4 years, 9 months ago by tomhudson
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tfarina, cc-bugs_chromium.org, noyau+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use sk_sp-based shader creation APIs Favor Skia's smart pointer based interface over raw pointers. Switch Chrome (but not Blink) to sk_sp<SkShader> params where feasible. BUG=skia:5077, 597620 R=fmalita@chromium.org,danakj@chromium.org,sky@chromium.org TBR=estade@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/2b45cf96adcc9d4902f926d9fd3ae17fb09d884e Cr-Commit-Position: refs/heads/master@{#384266}

Patch Set 1 #

Patch Set 2 : Fix mac-specific path #

Patch Set 3 : More mac-specific changes #

Patch Set 4 : Sprinkle in some std::move and some sk_sp in the API #

Total comments: 9

Patch Set 5 : Respond to reviews and REMOVE SkUserConfig CHANGE #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -102 lines) Patch
M cc/output/software_renderer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_container_view.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M skia/ext/pixel_ref_utils_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 2 chunks +6 lines, -11 lines 0 comments Download
M ui/gfx/render_text.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 4 5 4 chunks +12 lines, -14 lines 0 comments Download
M ui/gfx/skia_util.h View 2 chunks +6 lines, -6 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 2 3 4 5 3 chunks +7 lines, -8 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M ui/native_theme/native_theme_mac.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 2 chunks +4 lines, -6 lines 0 comments Download
M ui/views/controls/scrollbar/cocoa_scroll_bar.mm View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/style/mac/combobox_background_mac.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M ui/views/style/mac/dialog_button_border_mac.cc View 1 2 3 4 3 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 26 (13 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/1831883002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831883002/1
4 years, 9 months ago (2016-03-24 18:40:53 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/200162)
4 years, 9 months ago (2016-03-24 19:04:00 UTC) #5
tomhudson
We need to *undo* the SkUserConfig change before committing, since Mike reused that flag in ...
4 years, 9 months ago (2016-03-25 16:23:17 UTC) #7
danakj
LGTM https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc File cc/output/software_renderer.cc (right): https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc#newcode690 cc/output/software_renderer.cc:690: return sk_sp<SkShader>(); can you just return nullptr? (sk_sp ...
4 years, 9 months ago (2016-03-25 18:18:09 UTC) #8
f(malita)
lgtm https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc File cc/output/software_renderer.cc (right): https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc#newcode690 cc/output/software_renderer.cc:690: return sk_sp<SkShader>(); On 2016/03/25 18:18:08, danakj wrote: > ...
4 years, 9 months ago (2016-03-25 18:31:03 UTC) #9
tomhudson
https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc File cc/output/software_renderer.cc (right): https://codereview.chromium.org/1831883002/diff/60001/cc/output/software_renderer.cc#newcode690 cc/output/software_renderer.cc:690: return sk_sp<SkShader>(); On 2016/03/25 18:18:08, danakj wrote: > can ...
4 years, 9 months ago (2016-03-25 19:27:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831883002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831883002/80001
4 years, 9 months ago (2016-03-25 19:27:48 UTC) #13
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/160857)
4 years, 9 months ago (2016-03-25 19:37:45 UTC) #15
tomhudson
estade@: please review chrome/browser/ui/libgtk2ui/, ui/native_theme/ sky@: please review chrome/browser/ui/views/, ui/views/
4 years, 9 months ago (2016-03-25 19:49:48 UTC) #17
sky
LGTM
4 years, 9 months ago (2016-03-25 22:57:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831883002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831883002/100001
4 years, 8 months ago (2016-03-31 12:34:02 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-31 14:10:24 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 14:11:47 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2b45cf96adcc9d4902f926d9fd3ae17fb09d884e
Cr-Commit-Position: refs/heads/master@{#384266}

Powered by Google App Engine
This is Rietveld 408576698