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

Issue 10909242: Add "panel_fitting" GPU feature type and use it for mirror mode. (Closed)

Created:
8 years, 3 months ago by ynovikov
Modified:
8 years, 2 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add "panel_fitting" GPU feature type and use it for mirror mode. Panel fitting is used by mirror display mode on Chrome OS. This GPU feature type will tell if it is supported by GPU hardware. Initially enable it only for Ivy Bridge GPU via blacklisting everything else. Also add a disable_panel_fitting command flag, to be able to quickly turn the feature off. When hardware supports panel fitting, and there are no common modes between the internal and the external displays, configure the internal display to the external's resolution, and let the panel fitter take care of displaying it correctly. BUG=chromium-os:34442 TEST=Panel Fitting should appear as Hardware Accelerated in about:gpu on IVB Chrome OS, Unavailable everywhere else. TEST=Tested mirror mode on device. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161980

Patch Set 1 #

Patch Set 2 : Reorganized code per oshima's suggestion. #

Total comments: 46

Patch Set 3 : Addressed review comments of Patch Set 2 #

Total comments: 14

Patch Set 4 : Oshima's review. #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Fix compilation on non-Chrome OS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -96 lines) Patch
M ash/ash_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/gpu_internals/info_view.js View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M chromeos/display/output_configurator.h View 1 2 3 4 5 5 chunks +47 lines, -2 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 2 3 4 5 4 chunks +186 lines, -91 lines 0 comments Download
M content/browser/gpu/gpu_blacklist.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_util.cc View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_util_unittest.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/gpu/software_rendering_list.json View 1 2 3 4 5 6 3 chunks +18 lines, -2 lines 0 comments Download
M content/public/common/gpu_feature_type.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
ynovikov
Hi, please review this fix for mirror mode we want to land for M23. Zhenyao, ...
8 years, 3 months ago (2012-09-17 16:13:59 UTC) #1
cwolfe
Various thoughts. I believe they're almost entirely nits from my perspective, but the actual residents ...
8 years, 3 months ago (2012-09-18 13:27:47 UTC) #2
oshima
http://codereview.chromium.org/10909242/diff/2001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): http://codereview.chromium.org/10909242/diff/2001/chromeos/display/output_configurator.cc#newcode158 chromeos/display/output_configurator.cc:158: // Make sure exactly one of the outputs is ...
8 years, 3 months ago (2012-09-18 14:31:11 UTC) #3
ynovikov
http://codereview.chromium.org/10909242/diff/2001/chrome/browser/resources/software_rendering_list.json File chrome/browser/resources/software_rendering_list.json (right): http://codereview.chromium.org/10909242/diff/2001/chrome/browser/resources/software_rendering_list.json#newcode673 chrome/browser/resources/software_rendering_list.json:673: "description": "Enable panel fitting capability on ChromeOS only on ...
8 years, 3 months ago (2012-09-18 15:16:21 UTC) #4
Zhenyao Mo
LGTM with blacklist and about:gpu related code http://codereview.chromium.org/10909242/diff/2001/content/browser/gpu/gpu_util.cc File content/browser/gpu/gpu_util.cc (right): http://codereview.chromium.org/10909242/diff/2001/content/browser/gpu/gpu_util.cc#newcode134 content/browser/gpu/gpu_util.cc:134: matches.push_back(kGpuFeatureNamePanelFitting); Please ...
8 years, 3 months ago (2012-09-18 19:28:55 UTC) #5
cwolfe
Believe we're just waiting for oshima's opinion on a few things, all of which feel ...
8 years, 3 months ago (2012-09-18 20:55:50 UTC) #6
oshima
http://codereview.chromium.org/10909242/diff/2001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): http://codereview.chromium.org/10909242/diff/2001/chromeos/display/output_configurator.cc#newcode148 chromeos/display/output_configurator.cc:148: bool one_is_internal = OutputConfigurator::IsInternalOutputName( On 2012/09/18 15:16:21, ynovikov wrote: ...
8 years, 3 months ago (2012-09-18 21:11:31 UTC) #7
ynovikov
I believe I have addressed all the review comments, please check out the results. I've ...
8 years, 3 months ago (2012-09-21 18:48:27 UTC) #8
cwolfe
LGTM (just including a function diff) http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc#newcode834 chromeos/display/output_configurator.cc:834: int OutputConfigurator::GetDualOutputs(Display* display, ...
8 years, 3 months ago (2012-09-21 19:17:21 UTC) #9
oshima
http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc#newcode755 chromeos/display/output_configurator.cc:755: } nuke {} http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc#newcode774 chromeos/display/output_configurator.cc:774: } nuke {} http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc#newcode885 ...
8 years, 3 months ago (2012-09-21 19:38:12 UTC) #10
Zhenyao Mo
FYI: software_rendering_list.json has been moved to content/browser/gpu
8 years, 3 months ago (2012-09-21 20:04:11 UTC) #11
ynovikov
Addressed Oshima's review and rebased, getting updated software_rendering_list.json. http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): http://codereview.chromium.org/10909242/diff/12001/chromeos/display/output_configurator.cc#newcode755 chromeos/display/output_configurator.cc:755: } ...
8 years, 3 months ago (2012-09-21 23:05:36 UTC) #12
oshima
Can you hold this until Monday? We're punting extended desktop to 24 due to driver ...
8 years, 3 months ago (2012-09-21 23:14:09 UTC) #13
ynovikov
No problem, I can hold. But you probably want to land this very much, since ...
8 years, 3 months ago (2012-09-21 23:20:27 UTC) #14
oshima
On 2012/09/21 23:20:27, ynovikov wrote: > No problem, I can hold. > But you probably ...
8 years, 2 months ago (2012-10-04 17:04:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ynovikov@chromium.org/10909242/31001
8 years, 2 months ago (2012-10-09 20:18:22 UTC) #16
commit-bot: I haz the power
Presubmit check for 10909242-31001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-09 20:18:30 UTC) #17
ynovikov
Hi, I need an OWNERS review. sky, could you cover chrome/browser/ui/webui and ash? joi, can ...
8 years, 2 months ago (2012-10-09 20:44:29 UTC) #18
Jói
LGTM for content/public.
8 years, 2 months ago (2012-10-09 21:09:46 UTC) #19
nduca
LGTM if it needs it.
8 years, 2 months ago (2012-10-09 21:19:38 UTC) #20
sky
ash LGTM. I'm not a good reviewer for webui though. I added James.
8 years, 2 months ago (2012-10-09 22:52:42 UTC) #21
James Hawkins
webui lgtm
8 years, 2 months ago (2012-10-12 21:18:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ynovikov@chromium.org/10909242/37003
8 years, 2 months ago (2012-10-15 19:21:36 UTC) #23
commit-bot: I haz the power
8 years, 2 months ago (2012-10-15 22:19:34 UTC) #24
Change committed as 161980

Powered by Google App Engine
This is Rietveld 408576698