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

Issue 1412963003: Plugin Power Saver: Implement pixel tests for plugin placeholders. (Closed)

Created:
5 years, 2 months ago by tommycli
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, raymes, piman
CC:
chromium-reviews, jam, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Implement pixel tests for plugin placeholders. Tests these tough cases: 1) Centering the play icon for both posters and plugins with posters. 2) Displaying a scaled-down play icon for plugins smaller than the icon. 3) Partially obscured plugins and plugin posters. BUG=544292 Committed: https://crrev.com/f1959fb91340917f97eee2c0aad26456a7a0a3c4 Cr-Commit-Position: refs/heads/master@{#356215}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : fix message loop issue #

Patch Set 9 : fix behavior on slow cros bots #

Total comments: 42

Patch Set 10 : #

Patch Set 11 : git cl formatted #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : Fix file path issues #

Patch Set 16 : #

Patch Set 17 : Remove LargeCrossOriginObscured pixel test, because flaky, probably because behavior actually flaky #

Patch Set 18 : Revert back to PS 15 essentially #

Patch Set 19 : use secret piman sauce #

Patch Set 20 : #

Patch Set 21 : #

Total comments: 10

Patch Set 22 : rebase on top of https://codereview.chromium.org/1416723007/ #

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -60 lines) Patch
M chrome/browser/plugins/plugin_power_saver_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 13 chunks +310 lines, -24 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +22 lines, -11 lines 0 comments Download
M chrome/renderer/resources/plugins/plugin_poster.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/base/test_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/base/test_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
A + chrome/test/data/plugin_power_saver/click_me.png View 1 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/test/data/plugin_power_saver/large_cross_origin_obscured_expected.png View 1 2 3 4 5 17 Binary file 0 comments Download
A chrome/test/data/plugin_power_saver/poster_tests_expected.png View 1 2 3 4 5 Binary file 0 comments Download
A chrome/test/data/plugin_power_saver/small_cross_origin_expected.png View 1 2 3 4 5 Binary file 0 comments Download
A chrome/test/data/plugin_power_saver/smaller_than_play_icon_expected.png View 1 2 3 4 5 Binary file 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +27 lines, -23 lines 0 comments Download
M ppapi/tests/power_saver_test_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 59 (25 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/1412963003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/140001
5 years, 2 months ago (2015-10-20 22:10:39 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/118293)
5 years, 2 months ago (2015-10-20 23:23:06 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/40002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/40002
5 years, 2 months ago (2015-10-20 23:41:03 UTC) #9
tommycli
thestig: PTAL This is ready for review. Seems to work pretty reliably on the bots ...
5 years, 2 months ago (2015-10-20 23:55:56 UTC) #10
tommycli
On 2015/10/20 23:55:56, tommycli wrote: > thestig: PTAL > > This is ready for review. ...
5 years, 2 months ago (2015-10-21 00:02:17 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 00:48:28 UTC) #13
Lei Zhang
https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode134 chrome/browser/plugins/plugin_power_saver_browsertest.cc:134: scoped_ptr<char[]> data(new char[size]); Just use a std::vector, sans scoped_ptr. ...
5 years, 2 months ago (2015-10-21 07:24:53 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/190001
5 years, 2 months ago (2015-10-21 18:14:18 UTC) #17
tommycli
thestig: thanks. Btw: If LargeCrossOriginObscured pixel test seems flaky, should I remove it? https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File ...
5 years, 2 months ago (2015-10-21 18:16:04 UTC) #18
tommycli
raymes: PTAL ppapi/tests/power_saver_test_plugin.cc Thanks
5 years, 2 months ago (2015-10-21 18:16:36 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 19:21:39 UTC) #22
Lei Zhang
https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode296 chrome/browser/plugins/plugin_power_saver_browsertest.cc:296: // If we are rebaselining, give the placeholders an ...
5 years, 2 months ago (2015-10-21 23:25:33 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/210001
5 years, 2 months ago (2015-10-21 23:41:41 UTC) #26
tommycli
thestig: thx https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode296 chrome/browser/plugins/plugin_power_saver_browsertest.cc:296: // If we are rebaselining, give the ...
5 years, 2 months ago (2015-10-21 23:57:22 UTC) #27
Lei Zhang
https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode296 chrome/browser/plugins/plugin_power_saver_browsertest.cc:296: // If we are rebaselining, give the placeholders an ...
5 years, 2 months ago (2015-10-22 00:16:13 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/230001
5 years, 2 months ago (2015-10-22 00:46:11 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-22 01:50:13 UTC) #32
tommycli
https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode296 chrome/browser/plugins/plugin_power_saver_browsertest.cc:296: // If we are rebaselining, give the placeholders an ...
5 years, 2 months ago (2015-10-22 19:17:24 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/250001
5 years, 2 months ago (2015-10-22 19:18:17 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/270001
5 years, 2 months ago (2015-10-22 20:06:49 UTC) #37
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/130134)
5 years, 2 months ago (2015-10-22 20:40:47 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/290001
5 years, 2 months ago (2015-10-22 20:49:21 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/119368)
5 years, 2 months ago (2015-10-22 21:21:54 UTC) #43
tommycli
piman: I have a compositor question listed below - about testing pixels copied out of ...
5 years, 2 months ago (2015-10-22 22:32:42 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/310001
5 years, 2 months ago (2015-10-22 22:34:12 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-22 23:40:01 UTC) #48
piman
https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (right): https://codereview.chromium.org/1412963003/diff/40002/chrome/browser/plugins/plugin_power_saver_browsertest.cc#newcode296 chrome/browser/plugins/plugin_power_saver_browsertest.cc:296: // If we are rebaselining, give the placeholders an ...
5 years, 2 months ago (2015-10-23 01:45:31 UTC) #50
raymes
ppapi/ rubberstamp lgtm
5 years, 2 months ago (2015-10-23 03:19:42 UTC) #51
tommycli
piman: Thanks! Your secret sauce really worked. thestig: This is ready for another look. Using ...
5 years, 1 month ago (2015-10-26 22:25:17 UTC) #52
Lei Zhang
lgtm https://codereview.chromium.org/1412963003/diff/370001/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (left): https://codereview.chromium.org/1412963003/diff/370001/chrome/browser/plugins/plugin_power_saver_browsertest.cc#oldcode203 chrome/browser/plugins/plugin_power_saver_browsertest.cc:203: // Test extremely flaky, see https://crbug.com/547224 So the ...
5 years, 1 month ago (2015-10-26 23:15:47 UTC) #53
tommycli
thestig: thanks. https://codereview.chromium.org/1412963003/diff/370001/chrome/browser/plugins/plugin_power_saver_browsertest.cc File chrome/browser/plugins/plugin_power_saver_browsertest.cc (left): https://codereview.chromium.org/1412963003/diff/370001/chrome/browser/plugins/plugin_power_saver_browsertest.cc#oldcode203 chrome/browser/plugins/plugin_power_saver_browsertest.cc:203: // Test extremely flaky, see https://crbug.com/547224 On ...
5 years, 1 month ago (2015-10-26 23:29:51 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412963003/410001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412963003/410001
5 years, 1 month ago (2015-10-27 01:24:55 UTC) #57
commit-bot: I haz the power
Committed patchset #23 (id:410001)
5 years, 1 month ago (2015-10-27 02:41:35 UTC) #58
commit-bot: I haz the power
5 years, 1 month ago (2015-10-27 02:43:10 UTC) #59
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/f1959fb91340917f97eee2c0aad26456a7a0a3c4
Cr-Commit-Position: refs/heads/master@{#356215}

Powered by Google App Engine
This is Rietveld 408576698