diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 20:45:01 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 20:45:01 +0000 |
commit | 4bce24e4288130d9436863d1db3ee0295ed93277 (patch) | |
tree | 41b08178a03d6233ada409e877c5160ebabc189c /chrome/gpu/gpu_info_collector_linux.cc | |
parent | 1fc82d9171749533e7028a21c1649697499f6056 (diff) | |
download | chromium_src-4bce24e4288130d9436863d1db3ee0295ed93277.zip chromium_src-4bce24e4288130d9436863d1db3ee0295ed93277.tar.gz chromium_src-4bce24e4288130d9436863d1db3ee0295ed93277.tar.bz2 |
Added GPU stat for whether a GPU can report context lost.
On Windows it checks to see if the IDirect3D9 object supports Vista and later features (meaning it won't routinely report lost contexts). On Linux and Mac we can just check if its EGL versus some other GL that doesn't report lost contexts.
I routed the stats to the renderer process so webkit code can query whether lost contexts are likely.
I didn't wire up breakpad yet.
TEST=try
BUG=52318
Review URL: http://codereview.chromium.org/3149016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_info_collector_linux.cc')
-rw-r--r-- | chrome/gpu/gpu_info_collector_linux.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/gpu/gpu_info_collector_linux.cc b/chrome/gpu/gpu_info_collector_linux.cc index d6e08b4..2a4db9a 100644 --- a/chrome/gpu/gpu_info_collector_linux.cc +++ b/chrome/gpu/gpu_info_collector_linux.cc @@ -6,8 +6,12 @@ namespace gpu_info_collector { -bool CollectGraphicsInfo(GPUInfo& gpu_info) { +bool CollectGraphicsInfo(GPUInfo* gpu_info) { // TODO(rlp): complete this function + // TODO(apatrick): this illustrates how can_lose_context will be implemented + // on this platform in the future. + // bool can_lose_context = + // gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2; return true; } |