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

Issue 2943363003: Fixing transparent pixels appearing black when rendered for the context menu. (Closed)

Created:
3 years, 6 months ago by injae
Modified:
3 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ajwong+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing transparent pixels appearing black when rendered for the context menu. JPEG Codec does not support transparent pixels, so PNG Codec was added. Added a new parameter to chrome_render_frame_observer#RequestThumbnailForContextNode which controls the codec used to encode the image. Kept current implementations of RequestThumbnailForContextNode using JPEG Codec. Currently, the only use for PNG Codec is for the context menu BUG=730327 Review-Url: https://codereview.chromium.org/2943363003 Cr-Commit-Position: refs/heads/master@{#483219} Committed: https://chromium.googlesource.com/chromium/src/+/4b282d1865ab5c2273f7cb03be89eb0e55a58768

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed spacing for mojom file #

Total comments: 2

Patch Set 3 : comment length #

Patch Set 4 : fixed long comments #

Patch Set 5 : git rebase #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : creating and implementing ImageFormat enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/context_menu_helper.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/tab_contents/core_tab_helper.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/thumbnail_capturer.mojom View 1 2 3 4 5 6 1 chunk +12 lines, -5 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 4 5 6 4 chunks +19 lines, -2 lines 0 comments Download

Messages

Total messages: 62 (32 generated)
Daniel Park
3 years, 6 months ago (2017-06-19 21:53:37 UTC) #4
gone
I'm not the right person to be reviewing this because it's native code. I'd suggest ...
3 years, 6 months ago (2017-06-20 18:30:37 UTC) #7
Daniel Park
3 years, 6 months ago (2017-06-20 18:40:49 UTC) #9
msarett1
lgtm on the new call into gfx::PngCodec. Without understanding much about the use case, I'm ...
3 years, 6 months ago (2017-06-21 04:18:15 UTC) #11
Daniel Park
On 2017/06/21 04:18:15, msarett1 wrote: > lgtm on the new call into gfx::PngCodec. > > ...
3 years, 6 months ago (2017-06-22 01:11:20 UTC) #12
Daniel Park
https://codereview.chromium.org/2943363003/diff/1/chrome/common/thumbnail_capturer.mojom File chrome/common/thumbnail_capturer.mojom (right): https://codereview.chromium.org/2943363003/diff/1/chrome/common/thumbnail_capturer.mojom#newcode10 chrome/common/thumbnail_capturer.mojom:10: // Requests an encoded thumbnail of the image selected ...
3 years, 6 months ago (2017-06-22 01:11:35 UTC) #13
Daniel Park
https://codereview.chromium.org/2943363003/diff/1/chrome/common/thumbnail_capturer.mojom File chrome/common/thumbnail_capturer.mojom (right): https://codereview.chromium.org/2943363003/diff/1/chrome/common/thumbnail_capturer.mojom#newcode10 chrome/common/thumbnail_capturer.mojom:10: // Requests an encoded thumbnail of the image selected ...
3 years, 6 months ago (2017-06-22 01:17:33 UTC) #15
msarett1
Yes, looks good to me as is. Just wanted to provide some extra context.
3 years, 6 months ago (2017-06-22 03:56:06 UTC) #17
gone
OWNERs lgtm
3 years, 6 months ago (2017-06-22 17:26:18 UTC) #18
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/2943363003/20001
3 years, 6 months ago (2017-06-22 18:48:46 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/471272)
3 years, 6 months ago (2017-06-22 18:57:54 UTC) #23
Daniel Park
avi: please review render_view_context_menu_browsertest.cc and core_tab_helper.cc. yfriedman: please review context_menu_helper.cc tsepez: please review thumbnail_capturer.mojom, chrome_render_frame_observer.h, ...
3 years, 5 months ago (2017-06-23 20:21:42 UTC) #25
Tom Sepez
lgtm https://codereview.chromium.org/2943363003/diff/20001/chrome/common/thumbnail_capturer.mojom File chrome/common/thumbnail_capturer.mojom (right): https://codereview.chromium.org/2943363003/diff/20001/chrome/common/thumbnail_capturer.mojom#newcode10 chrome/common/thumbnail_capturer.mojom:10: // Requests an encoded thumbnail of the image ...
3 years, 5 months ago (2017-06-23 20:25:28 UTC) #26
Avi (use Gerrit)
On 2017/06/23 20:21:42, Daniel Park wrote: > avi: please review render_view_context_menu_browsertest.cc and > core_tab_helper.cc. LGTM; ...
3 years, 5 months ago (2017-06-23 21:05:20 UTC) #27
Yaron
chrome/browser/ui/android/context_menu_helper.cc lgtm
3 years, 5 months ago (2017-06-23 21:36:12 UTC) #28
Daniel Park
https://codereview.chromium.org/2943363003/diff/20001/chrome/common/thumbnail_capturer.mojom File chrome/common/thumbnail_capturer.mojom (right): https://codereview.chromium.org/2943363003/diff/20001/chrome/common/thumbnail_capturer.mojom#newcode10 chrome/common/thumbnail_capturer.mojom:10: // Requests an encoded thumbnail of the image selected ...
3 years, 5 months ago (2017-06-23 23:30:21 UTC) #29
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/2943363003/40001
3 years, 5 months ago (2017-06-23 23:31:50 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/238833) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-06-23 23:33:57 UTC) #34
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/2943363003/60001
3 years, 5 months ago (2017-06-23 23:37:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/127430) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-06-23 23:39:49 UTC) #39
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/2943363003/80001
3 years, 5 months ago (2017-06-23 23:58:16 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/238859) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-06-24 00:00:30 UTC) #44
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/2943363003/100001
3 years, 5 months ago (2017-06-24 00:37:45 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/472961)
3 years, 5 months ago (2017-06-24 00:45:00 UTC) #49
Avi (use Gerrit)
On 2017/06/24 00:45:00, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 5 months ago (2017-06-24 01:02:30 UTC) #50
Daniel Park
jochen: please review chrome/renderer/chrome_render_frame_observer.*. thank you!
3 years, 5 months ago (2017-06-24 01:23:33 UTC) #52
jochen (gone - plz use gerrit)
lgtm with comment https://codereview.chromium.org/2943363003/diff/100001/chrome/renderer/chrome_render_frame_observer.h File chrome/renderer/chrome_render_frame_observer.h (right): https://codereview.chromium.org/2943363003/diff/100001/chrome/renderer/chrome_render_frame_observer.h#newcode58 chrome/renderer/chrome_render_frame_observer.h:58: bool use_png_codec, can you make this ...
3 years, 5 months ago (2017-06-28 18:15:17 UTC) #55
injae
https://codereview.chromium.org/2943363003/diff/100001/chrome/renderer/chrome_render_frame_observer.h File chrome/renderer/chrome_render_frame_observer.h (right): https://codereview.chromium.org/2943363003/diff/100001/chrome/renderer/chrome_render_frame_observer.h#newcode58 chrome/renderer/chrome_render_frame_observer.h:58: bool use_png_codec, On 2017/06/28 18:15:17, jochen wrote: > can ...
3 years, 5 months ago (2017-06-28 22:50:04 UTC) #58
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/2943363003/120001
3 years, 5 months ago (2017-06-28 22:50:07 UTC) #59
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 00:26:25 UTC) #62
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4b282d1865ab5c2273f7cb03be89...

Powered by Google App Engine
This is Rietveld 408576698