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

Issue 10959050: Honor --gpu-switching=force_discrete to always stay on discrete GPU. (Closed)

Created:
8 years, 3 months ago by Zhenyao Mo
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Honor --gpu-switching=force_discrete to always stay on discrete GPU. Before we only stays on discrete GPU if any GL contexts are active. Now we truly stay on discrete GPU, always. This CL also remove --disable-gpu-switching; use --gpu-switching=force_integrated/force_discrete instead. Also, user's --gpu-switching option will overwrite the hardwired force_discrete decision, i.e., if a user wants to stay on integrated GPU and save battery, we honor that. BUG=140114, 131276, 111720 TEST=tree Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158128

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -12 lines) Patch
M content/browser/gpu/gpu_process_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_context_cgl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_context_cgl.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gl/gl_context_mac.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gl/gl_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_switches.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/gl/gpu_switching_manager.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M ui/gl/gpu_switching_manager.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Zhenyao Mo
kbr: please review.
8 years, 3 months ago (2012-09-21 22:39:57 UTC) #1
Zhenyao Mo
Note that the ForceUseOfDiscreteGPU() was deleted from the previous CL. This CL simply get it ...
8 years, 3 months ago (2012-09-21 22:41:13 UTC) #2
Zhenyao Mo
jbauman: can you also take a look?
8 years, 3 months ago (2012-09-21 22:41:43 UTC) #3
Zhenyao Mo
FYI: the switches are tested, both force_integrated and force_discrete work as expected.
8 years, 3 months ago (2012-09-21 22:56:04 UTC) #4
Ken Russell (switch to Gerrit)
LGTM, but please think about the comment below. http://codereview.chromium.org/10959050/diff/9001/ui/gl/gl_context_cgl.cc File ui/gl/gl_context_cgl.cc (right): http://codereview.chromium.org/10959050/diff/9001/ui/gl/gl_context_cgl.cc#newcode229 ui/gl/gl_context_cgl.cc:229: if ...
8 years, 3 months ago (2012-09-21 23:00:29 UTC) #5
jbauman
Are you forcing into onto the discrete GPU as soon as the GPU process starts, ...
8 years, 3 months ago (2012-09-21 23:02:41 UTC) #6
Zhenyao Mo
On 2012/09/21 23:02:41, jbauman wrote: > Are you forcing into onto the discrete GPU as ...
8 years, 3 months ago (2012-09-21 23:08:00 UTC) #7
Zhenyao Mo
http://codereview.chromium.org/10959050/diff/9001/ui/gl/gl_context_cgl.cc File ui/gl/gl_context_cgl.cc (right): http://codereview.chromium.org/10959050/diff/9001/ui/gl/gl_context_cgl.cc#newcode229 ui/gl/gl_context_cgl.cc:229: if (format) On 2012/09/21 23:00:29, kbr wrote: > Indentation ...
8 years, 3 months ago (2012-09-21 23:08:08 UTC) #8
jbauman
8 years, 3 months ago (2012-09-21 23:52:26 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698