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

Issue 11047011: Figure out whether we have enough information to make the final GPU blacklisting decision. (Closed)

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

Description

Figure out whether we have enough information to make the final GPU blacklisting decision. If yes and all GPU features are blacklisted, we don't launch GPU process. BUG=154130 TEST=content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=160923

Patch Set 1 : #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -41 lines) Patch
M content/browser/gpu/gpu_blacklist.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_blacklist.cc View 1 7 chunks +53 lines, -12 lines 0 comments Download
M content/browser/gpu/gpu_blacklist_unittest.cc View 1 2 3 1 chunk +175 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.cc View 1 2 chunks +12 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 4 chunks +6 lines, -21 lines 0 comments Download
M content/public/common/content_switches.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Zhenyao Mo
Please take a look.
8 years, 2 months ago (2012-10-09 18:15:04 UTC) #1
Zhenyao Mo
avi or joi: content/public owner approval
8 years, 2 months ago (2012-10-09 18:17:41 UTC) #2
Jói
https://codereview.chromium.org/11047011/diff/11001/content/public/common/content_switches.h File content/public/common/content_switches.h (left): https://codereview.chromium.org/11047011/diff/11001/content/public/common/content_switches.h#oldcode186 content/public/common/content_switches.h:186: CONTENT_EXPORT extern const char kSkipGpuDataLoading[]; I didn't see a ...
8 years, 2 months ago (2012-10-09 18:29:42 UTC) #3
Zhenyao Mo
I was used in chrome side before so we need the CONTENT_EXPORT then. Later that ...
8 years, 2 months ago (2012-10-09 18:30:58 UTC) #4
Jói
OK, LGTM for content/public. On Tue, Oct 9, 2012 at 6:30 PM, <zmo@chromium.org> wrote: > ...
8 years, 2 months ago (2012-10-09 18:40:29 UTC) #5
Ken Russell (switch to Gerrit)
LGTM overall. Nice tests. Couple of comments. https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_data_manager_impl.cc File content/browser/gpu/gpu_data_manager_impl.cc (right): https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_data_manager_impl.cc#newcode302 content/browser/gpu/gpu_data_manager_impl.cc:302: if ((gpu_feature_type_ ...
8 years, 2 months ago (2012-10-09 18:52:55 UTC) #6
Zhenyao Mo
Thanks for reviewing this CL. https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_data_manager_impl.cc File content/browser/gpu/gpu_data_manager_impl.cc (right): https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_data_manager_impl.cc#newcode302 content/browser/gpu/gpu_data_manager_impl.cc:302: if ((gpu_feature_type_ & mask) ...
8 years, 2 months ago (2012-10-09 19:20:47 UTC) #7
Zhenyao Mo
8 years, 2 months ago (2012-10-09 19:36:19 UTC) #8
On 2012/10/09 19:20:47, Zhenyao Mo wrote:
> Thanks for reviewing this CL.
> 
>
https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_d...
> File content/browser/gpu/gpu_data_manager_impl.cc (right):
> 
>
https://codereview.chromium.org/11047011/diff/11001/content/browser/gpu/gpu_d...
> content/browser/gpu/gpu_data_manager_impl.cc:302: if ((gpu_feature_type_ &
mask)
> != 0)
> On 2012/10/09 18:52:55, kbr wrote:
> > At some point we really should rename confusingly named variables like
> > "gpu_feature_type_". They make it difficult to read through code like this
> > quickly and figure out what it's doing.
> 
> Will do in a follow-up CL.
> 
> https://codereview.chromium.org/11047011/diff/11001/content/gpu/gpu_main.cc
> File content/gpu/gpu_main.cc (right):
> 
>
https://codereview.chromium.org/11047011/diff/11001/content/gpu/gpu_main.cc#n...
> content/gpu/gpu_main.cc:128: initialized_gl_context = true;
> On 2012/10/09 18:52:55, kbr wrote:
> > Now CollectGraphicsInfo might have failed above, so is it correct to always
> set
> > this to true?
> 
> For this we need to evaluate the effects of this variable
> initialized_gl_context, however, this CL does not change the behavior (before
> it's also possible to fail, only it's on Linux only; now it's for all
> platforms).  I'll try to clean this up in a separate CL.

Actually it's OK.  First, this variable only takes effects on Linux, so this CL
does not change anything.  Second, even if we fail to create a context here, we
will fail later also, so setting this to true under such case does not hurt.

Powered by Google App Engine
This is Rietveld 408576698