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

Issue 10310180: Disable GPU info collection on GPU process startup on Win/Mac. (Closed)

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

Description

Disable GPU info collection on GPU process startup on Win/Mac. This is because preliminary GPU info is enough for making final blacklist decisions on Win/Mac. However, at the moment on Linux, blacklist decisions are still depending on full GPU info in certain cases, so we still need to do it on Linux. The full GPU info collection is done on demand when about:gpu page opens. Also, we need GPU's vendor_id, device_id, driver_version for crash reporting in GPU process. So before about:gpu page opens, we won't have them. Therefore, we pass them down from browser process to GPU process through commandline switches. BUG=128082 TEST=about:gpu R=apatrick TBR=jam Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137725

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -27 lines) Patch
M content/browser/gpu/gpu_data_manager_impl.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 6 chunks +20 lines, -16 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 2 chunks +29 lines, -11 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Zhenyao Mo
Al, please have a look.
8 years, 7 months ago (2012-05-15 23:08:17 UTC) #1
Zhenyao Mo
8 years, 7 months ago (2012-05-15 23:13:38 UTC) #2
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10310180/diff/7001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://chromiumcodereview.appspot.com/10310180/diff/7001/content/gpu/gpu_child_thread.cc#newcode171 content/gpu/gpu_child_thread.cc:171: LOG(INFO) << "gpu_info_collector::CollectGraphicsInfo failed"; please use VLOG(1) instead of ...
8 years, 7 months ago (2012-05-16 07:34:18 UTC) #3
apatrick_chromium
https://chromiumcodereview.appspot.com/10310180/diff/8003/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://chromiumcodereview.appspot.com/10310180/diff/8003/content/gpu/gpu_child_thread.cc#newcode168 content/gpu/gpu_child_thread.cc:168: if (gfx::GLSurface::InitializeOneOff()) { At this point, the GPU sandbox ...
8 years, 7 months ago (2012-05-16 18:02:35 UTC) #4
Zhenyao Mo
Revised, please have a look. Now: on Linux: collect full GPU info on startup On ...
8 years, 7 months ago (2012-05-17 18:29:40 UTC) #5
apatrick_chromium
Have you tested it with --single-process as well? http://codereview.chromium.org/10310180/diff/13003/content/browser/gpu/gpu_data_manager_impl.cc File content/browser/gpu/gpu_data_manager_impl.cc (right): http://codereview.chromium.org/10310180/diff/13003/content/browser/gpu/gpu_data_manager_impl.cc#newcode223 content/browser/gpu/gpu_data_manager_impl.cc:223: command_line->AppendSwitchASCII(switches::kGpuVendorID, ...
8 years, 7 months ago (2012-05-17 18:44:39 UTC) #6
Zhenyao Mo
Tested with --single-process with webgl aquarium and it works (on Mac) Please have another look. ...
8 years, 7 months ago (2012-05-17 19:58:40 UTC) #7
apatrick_chromium
8 years, 7 months ago (2012-05-17 20:14:22 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698