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

Issue 2915353002: Stylize PlaceholderImages with icons. (Closed)

Created:
3 years, 6 months ago by sclittle
Modified:
3 years, 6 months ago
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jam, pdr+graphicswatchlist_chromium.org, fmalita+watch_chromium.org, blink-reviews-api_chromium.org, dglazkov+blink, Rik, darin-cc_chromium.org, Justin Novosad, blink-reviews, kinuko+watch, Stephen Chennney, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stylize PlaceholderImages with icons. This CL stylizes the appearance of PlaceholderImages by adding an icon. See the spec here: https://docs.google.com/document/d/1BHeA1azbgCdZgCnr16VN2g7A9MHPQ_dwKn5szh8evMQ/edit BUG=605351 Review-Url: https://codereview.chromium.org/2915353002 Cr-Commit-Position: refs/heads/master@{#478098} Committed: https://chromium.googlesource.com/chromium/src/+/aae1e1ce18a9b1923ea7bdfafa5f3afe46050532

Patch Set 1 #

Patch Set 2 : Scale down a larger image to improve appearance on high DPI devices. #

Total comments: 11

Patch Set 3 : Addressed comments #

Total comments: 2

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -13 lines) Patch
M content/child/blink_platform_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.h View 3 chunks +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp View 1 2 3 3 chunks +63 lines, -10 lines 0 comments Download
M third_party/WebKit/public/blink_image_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/default_100_percent/blink/placeholder_icon.png View 1 Binary file 0 comments Download

Messages

Total messages: 19 (8 generated)
sclittle
3 years, 6 months ago (2017-06-02 23:39:36 UTC) #2
kinuko
The code itself looks reasonable, but I don't have a good idea about the specific ...
3 years, 6 months ago (2017-06-05 06:30:14 UTC) #5
f(malita)
graphics/ code looks good, just a couple of questions/suggestions. +vmpstr to make sure this plays ...
3 years, 6 months ago (2017-06-05 13:04:28 UTC) #7
vmpstr
This should work fine with custom display lists. PaintImage currently is just an SkImage with ...
3 years, 6 months ago (2017-06-05 18:05:29 UTC) #8
sclittle
https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp File third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp (right): https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp#newcode59 third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp:59: On 2017/06/05 06:30:13, kinuko wrote: > Can you add ...
3 years, 6 months ago (2017-06-05 22:26:08 UTC) #9
f(malita)
https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp File third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp (right): https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp#newcode68 third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp:68: constexpr int kIconPaddingY = 5; On 2017/06/05 22:26:08, sclittle ...
3 years, 6 months ago (2017-06-06 14:04:21 UTC) #11
sclittle
https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp File third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp (right): https://codereview.chromium.org/2915353002/diff/20001/third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp#newcode88 third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp:88: icon_image->Draw(canvas, base_flags, icon_dest_rect, On 2017/06/06 14:04:21, f(malita) wrote: > ...
3 years, 6 months ago (2017-06-07 19:43:54 UTC) #12
f(malita)
Thanks, platform/graphics LGTM.
3 years, 6 months ago (2017-06-07 20:18:47 UTC) #13
kinuko
lgtm/2
3 years, 6 months ago (2017-06-08 04:56:37 UTC) #14
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/2915353002/60001
3 years, 6 months ago (2017-06-08 17:58:47 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 21:48:22 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/aae1e1ce18a9b1923ea7bdfafa5f...

Powered by Google App Engine
This is Rietveld 408576698