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

Issue 5612002: Blacklist bad GPU drivers: currenly we disable all gpu related features if th... (Closed)

Created:
10 years ago by Zhenyao Mo
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, arv (Not doing code reviews), ben+cc_chromium.org
Visibility:
Public.

Description

Blacklist bad GPU drivers: currenly we disable all gpu related features if a (os, device, driver) configuration is on the blacklist. BUG=58182 TEST=unittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68948

Patch Set 1 #

Total comments: 12

Patch Set 2 : responding to brettw's review; also, fixed test failue #

Patch Set 3 : removing one garbage line in the code #

Total comments: 15

Patch Set 4 : Have one entry in the json file now #

Patch Set 5 : Fixed the unittest issues. #

Total comments: 2

Patch Set 6 : Fix the mesa test failures: it's bug in the code. Will land this once all try bots turn green #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+999 lines, -1 line) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/gpu_blacklist.h View 1 2 3 4 5 1 chunk +190 lines, -0 lines 0 comments Download
A chrome/browser/gpu_blacklist.cc View 1 2 3 4 5 1 chunk +420 lines, -0 lines 0 comments Download
A chrome/browser/gpu_blacklist_unittest.cc View 1 2 3 4 5 6 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/browser/gpu_process_host.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/gpu_process_host.cc View 1 2 3 4 5 4 chunks +39 lines, -1 line 0 comments Download
A chrome/browser/resources/gpu_blacklist.json View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/common/gpu_feature_flags.h View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/common/gpu_feature_flags.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/common/gpu_feature_flags_unittest.cc View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/common/gpu_messages_internal.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_thread.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_thread.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Zhenyao Mo
10 years ago (2010-12-02 21:43:21 UTC) #1
brettw
http://codereview.chromium.org/5612002/diff/1/chrome/browser/gpu_blacklist.h File chrome/browser/gpu_blacklist.h (right): http://codereview.chromium.org/5612002/diff/1/chrome/browser/gpu_blacklist.h#newcode16 chrome/browser/gpu_blacklist.h:16: #include "base/values.h" I think you can forward declare DictionaryValue ...
10 years ago (2010-12-03 00:11:38 UTC) #2
Zhenyao Mo
A second patch will be uploaded. http://codereview.chromium.org/5612002/diff/1/chrome/browser/gpu_blacklist.h File chrome/browser/gpu_blacklist.h (right): http://codereview.chromium.org/5612002/diff/1/chrome/browser/gpu_blacklist.h#newcode16 chrome/browser/gpu_blacklist.h:16: #include "base/values.h" On ...
10 years ago (2010-12-03 18:29:57 UTC) #3
brettw
Thanks! I just did a style drive-by, so your "real" reviewers should review it now ...
10 years ago (2010-12-06 17:38:13 UTC) #4
vangelis
Looks good! Just a few inline comments. http://codereview.chromium.org/5612002/diff/36001/chrome/browser/gpu_blacklist.cc File chrome/browser/gpu_blacklist.cc (right): http://codereview.chromium.org/5612002/diff/36001/chrome/browser/gpu_blacklist.cc#newcode132 chrome/browser/gpu_blacklist.cc:132: std::string os_type ...
10 years ago (2010-12-08 00:17:38 UTC) #5
Ken Russell (switch to Gerrit)
http://codereview.chromium.org/5612002/diff/36001/chrome/renderer/render_thread.cc File chrome/renderer/render_thread.cc (right): http://codereview.chromium.org/5612002/diff/36001/chrome/renderer/render_thread.cc#newcode1095 chrome/renderer/render_thread.cc:1095: gpu_feature_flags.is_webgl_blacklisted()) { There's an architectural problem with doing these ...
10 years ago (2010-12-08 05:04:15 UTC) #6
Zhenyao Mo
Also, if any of the features are blacklisted, browser will kill the gpu channel (instead ...
10 years ago (2010-12-09 00:06:06 UTC) #7
Zhenyao Mo
10 years ago (2010-12-09 18:27:19 UTC) #8
Ken Russell (switch to Gerrit)
This approach looks better to me. LGTM.
10 years ago (2010-12-10 00:53:00 UTC) #9
vangelis
Looks good. Just a couple of smaller comments and it's good to go. http://codereview.chromium.org/5612002/diff/65001/chrome/browser/gpu_blacklist.h File ...
10 years ago (2010-12-10 18:17:24 UTC) #10
Timur Iskhodzhanov
10 years ago (2010-12-12 13:26:48 UTC) #11
This patch has made all the UI Valgrind bots red on the memory waterfall
Please watch the memory waterfall status after commiting!

On 2010/12/10 18:17:24, vangelis wrote:
> Looks good. Just a couple of smaller comments and it's good to go.
> 
>
http://codereview.chromium.org/5612002/diff/65001/chrome/browser/gpu_blacklist.h
> File chrome/browser/gpu_blacklist.h (right):
> 
>
http://codereview.chromium.org/5612002/diff/65001/chrome/browser/gpu_blacklis...
> chrome/browser/gpu_blacklist.h:31: //    expanded in the future).
> Should we add an "all" feature that turns off everything?  Also, I think you
> should mention here that in the current implementation, there's no way to turn
> off individual features just to make sure there's no confusion.
> 
>
http://codereview.chromium.org/5612002/diff/65001/chrome/common/gpu_feature_f...
> File chrome/common/gpu_feature_flags.h (right):
> 
>
http://codereview.chromium.org/5612002/diff/65001/chrome/common/gpu_feature_f...
> chrome/common/gpu_feature_flags.h:19: kGpuFeatureAccelerated2dCanvas = 1,
> Since you're expecting to be able to do binary operations with these, it might
> be better to define their values as:
> 
> 1 << 0
> 1 << 1
> 1 << 2
> 
> etc.  to make sure they stay as powers of two.

Powered by Google App Engine
This is Rietveld 408576698