summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gpu_process_host.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 20:45:01 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 20:45:01 +0000
commit4bce24e4288130d9436863d1db3ee0295ed93277 (patch)
tree41b08178a03d6233ada409e877c5160ebabc189c /chrome/browser/gpu_process_host.h
parent1fc82d9171749533e7028a21c1649697499f6056 (diff)
downloadchromium_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/browser/gpu_process_host.h')
-rw-r--r--chrome/browser/gpu_process_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/gpu_process_host.h b/chrome/browser/gpu_process_host.h
index cfb2821..b1b1b75 100644
--- a/chrome/browser/gpu_process_host.h
+++ b/chrome/browser/gpu_process_host.h
@@ -16,6 +16,7 @@
#include "gfx/native_widget_types.h"
struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params;
+class GPUInfo;
namespace IPC {
struct ChannelHandle;
@@ -96,6 +97,7 @@ class GpuProcessHost : public BrowserChildProcessHost {
#endif
void ReplyToRenderer(const IPC::ChannelHandle& channel,
+ const GPUInfo& gpu_info,
ResourceMessageFilter* filter);
// ResourceDispatcherHost::Receiver implementation: