diff options
author | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:11:51 +0000 |
---|---|---|
committer | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:11:51 +0000 |
commit | a4cdbab0a6b3fe108efc74ec5bf579689d40bbed (patch) | |
tree | e23fd4a39c8f77ecf3bc1208a555618f14e49a98 /gpu | |
parent | 6d36f8ad4a7af6287ecc6e110c2b95f77c9c40e8 (diff) | |
download | chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.zip chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.tar.gz chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.tar.bz2 |
Add driver bug workarounds to about:gpu page.
Also, fixed a few issues in about:gpu
1) get rid of the multi-tab stuff - it's causing a Uncaught TypeError.
2) set the body margin correctly
BUG=244576
TEST=about:gpu page with driver bug workarounds info
R=gman@chromium.org, nduca@chromium.org
Review URL: https://codereview.chromium.org/15650017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/config/gpu_driver_bug_list.cc | 11 | ||||
-rw-r--r-- | gpu/config/gpu_driver_bug_workaround_type.h | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gpu/config/gpu_driver_bug_list.cc b/gpu/config/gpu_driver_bug_list.cc index 68f1b0b..d845c16 100644 --- a/gpu/config/gpu_driver_bug_list.cc +++ b/gpu/config/gpu_driver_bug_list.cc @@ -44,5 +44,16 @@ GpuDriverBugList* GpuDriverBugList::Create() { return list; } +std::string GpuDriverBugWorkaroundTypeToString( + GpuDriverBugWorkaroundType type) { + switch (type) { +#define GPU_OP(type, name) case type: return #name; + GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) +#undef GPU_OP + default: + return "unknown"; + }; +} + } // namespace gpu diff --git a/gpu/config/gpu_driver_bug_workaround_type.h b/gpu/config/gpu_driver_bug_workaround_type.h index 1d78c97..48a9d6e 100644 --- a/gpu/config/gpu_driver_bug_workaround_type.h +++ b/gpu/config/gpu_driver_bug_workaround_type.h @@ -5,6 +5,8 @@ #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ +#include <string> + #include "gpu/gpu_export.h" #define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \ @@ -65,6 +67,9 @@ enum GPU_EXPORT GpuDriverBugWorkaroundType { NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES }; +GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( + GpuDriverBugWorkaroundType type); + } // namespace gpu #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |