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

Issue 6531023: Collect as much GPU information as possible without creating a GL/D3D context... (Closed)

Created:
9 years, 10 months ago by Zhenyao Mo
Modified:
9 years, 10 months ago
CC:
chromium-reviews, pam+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Collect as much GPU information as possible without creating a GL/D3D context. If based on such partial information, a graphics card/driver is already blacklisted, we shouldn't even try to establish GPU channel. This gives us the ability to blacklist REALLY BAD graphics card/driver that will crash during GPU info collection. BUG=72979 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75473

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : move safe info collection into gpu process #

Total comments: 10

Patch Set 4 : Fix an issue with about:gpu page #

Patch Set 5 : For the records #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -30 lines) Patch
M chrome/browser/gpu_blacklist.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/gpu_blacklist.cc View 1 2 3 chunks +13 lines, -21 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/gpu_process_host_ui_shim.cc View 1 2 3 4 5 chunks +48 lines, -1 line 0 comments Download
M chrome/common/gpu_messages_internal.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_info_collector.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_info_collector_linux.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_info_collector_mac.mm View 1 2 3 4 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/gpu/gpu_info_collector_win.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/gpu/gpu_thread.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Zhenyao Mo
Please review.
9 years, 10 months ago (2011-02-17 02:52:04 UTC) #1
Zhenyao Mo
Try bots are all green. Also, I manually changed the gpu_blacklist.json to include my own ...
9 years, 10 months ago (2011-02-17 19:13:29 UTC) #2
Ken Russell (switch to Gerrit)
We've discussed this offline, but I am *very* concerned about adding more GPU-related work to ...
9 years, 10 months ago (2011-02-17 23:08:47 UTC) #3
Zhenyao Mo
Revised. Please review.
9 years, 10 months ago (2011-02-18 19:37:58 UTC) #4
Ken Russell (switch to Gerrit)
LGTM. Thanks for doing this restructuring. I really don't like the name "Safe" and have ...
9 years, 10 months ago (2011-02-18 22:21:23 UTC) #5
Zhenyao Mo
9 years, 10 months ago (2011-02-18 22:41:52 UTC) #6
Thanks for reviewing this CL.

http://codereview.chromium.org/6531023/diff/9001/chrome/browser/gpu_process_h...
File chrome/browser/gpu_process_host_ui_shim.cc (right):

http://codereview.chromium.org/6531023/diff/9001/chrome/browser/gpu_process_h...
chrome/browser/gpu_process_host_ui_shim.cc:441: void
GpuProcessHostUIShim::OnGraphicsInfoCollectedSafe(
On 2011/02/18 22:21:24, kbr wrote:
> This name is not really descriptive and also isn't grammatically correct.
> Suggestions: OnPartialGraphicsInfoCollected,
OnPreliminaryGraphicsInfoCollected,
> OnSafeGraphicsInfoCollected.

Used Preliminary.

http://codereview.chromium.org/6531023/diff/9001/chrome/browser/gpu_process_h...
chrome/browser/gpu_process_host_ui_shim.cc:454: logging::LOG_WARNING, "WARNING",
"GPU is blacklisted (SAFE MODE).");
On 2011/02/18 22:21:24, kbr wrote:
> This message isn't useful. Perhaps "GPU is blacklisted based on partial
graphics
> card information collection."

Since you suggested to add an error message in the GPU process, no need to log
again here.  Removed.

http://codereview.chromium.org/6531023/diff/9001/chrome/common/gpu_messages_i...
File chrome/common/gpu_messages_internal.h (right):

http://codereview.chromium.org/6531023/diff/9001/chrome/common/gpu_messages_i...
chrome/common/gpu_messages_internal.h:137: // info.
On 2011/02/18 22:21:24, kbr wrote:
> In that case just name it GpuHostMsg_PartialGraphicsInfoCollected.

Used preliminary here to be consistent.

http://codereview.chromium.org/6531023/diff/9001/chrome/gpu/gpu_info_collector.h
File chrome/gpu/gpu_info_collector.h (right):

http://codereview.chromium.org/6531023/diff/9001/chrome/gpu/gpu_info_collecto...
chrome/gpu/gpu_info_collector.h:26: bool CollectGraphicsInfoSafe(GPUInfo*
gpu_info);
On 2011/02/18 22:21:24, kbr wrote:
> CollectPartialGraphicsInfo? CollectSafeGraphicsInfo?

Use preliminary to be consistent

http://codereview.chromium.org/6531023/diff/9001/chrome/gpu/gpu_thread.cc
File chrome/gpu/gpu_thread.cc (right):

http://codereview.chromium.org/6531023/diff/9001/chrome/gpu/gpu_thread.cc#new...
chrome/gpu/gpu_thread.cc:121: MessageLoop::current()->Quit();
On 2011/02/18 22:21:24, kbr wrote:
> How about a LOG(ERROR) like the other exit paths?

Done.

Powered by Google App Engine
This is Rietveld 408576698