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

Issue 2373633002: Improve ergonomics of CanvasImageSource -> gfx::ImageSkia. (Closed)

Created:
4 years, 2 months ago by Evan Stade
Modified:
4 years, 2 months ago
Reviewers:
Robert Sesek, oshima
CC:
chromium-reviews, rsesek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve ergonomics of CanvasImageSource -> gfx::ImageSkia. So we don't have to write things like: auto source = new MySource; ... = gfx::ImageSkia(source, source->size()); instead, we write ... = CanvasImageSource::MakeImageSkia<MySource>(); BUG=none Committed: https://crrev.com/96307adee9e24f088e57a5a12485e6caafdb8afb Cr-Commit-Position: refs/heads/master@{#421538}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M ui/gfx/image/canvas_image_source.h View 1 3 chunks +13 lines, -2 lines 0 comments Download
M ui/gfx/image/canvas_image_source.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/paint_vector_icon.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Evan Stade
wdyt? This is an alternative to adding another ctor to ImageSkia. Seems like better dependency ...
4 years, 2 months ago (2016-09-26 18:49:21 UTC) #2
Robert Sesek
Seems like a nice solution to me. But +oshmia for image_skia OWNERS too. https://codereview.chromium.org/2373633002/diff/1/ui/gfx/image/canvas_image_source.h File ...
4 years, 2 months ago (2016-09-26 21:59:53 UTC) #4
oshima
nice. lgtm with rsesek@'s comment is addressed. https://codereview.chromium.org/2373633002/diff/1/ui/gfx/image/canvas_image_source.h File ui/gfx/image/canvas_image_source.h (right): https://codereview.chromium.org/2373633002/diff/1/ui/gfx/image/canvas_image_source.h#newcode29 ui/gfx/image/canvas_image_source.h:29: gfx::Size size ...
4 years, 2 months ago (2016-09-27 22:50:26 UTC) #5
Evan Stade
https://codereview.chromium.org/2373633002/diff/1/ui/gfx/image/canvas_image_source.h File ui/gfx/image/canvas_image_source.h (right): https://codereview.chromium.org/2373633002/diff/1/ui/gfx/image/canvas_image_source.h#newcode26 ui/gfx/image/canvas_image_source.h:26: template <typename T, typename... Args> On 2016/09/26 21:59:53, Robert ...
4 years, 2 months ago (2016-09-28 01:52:34 UTC) #6
Robert Sesek
lgtm
4 years, 2 months ago (2016-09-28 16:28:37 UTC) #11
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/2373633002/20001
4 years, 2 months ago (2016-09-28 16:29:59 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-28 16:38:35 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 16:42:07 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/96307adee9e24f088e57a5a12485e6caafdb8afb
Cr-Commit-Position: refs/heads/master@{#421538}

Powered by Google App Engine
This is Rietveld 408576698