Chromium Code Reviews| Index: ui/gl/gl_driver_workarounds.h |
| diff --git a/ui/gl/gl_driver_workarounds.h b/ui/gl/gl_driver_workarounds.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..776a93e1be475bea512ff81d21107032048f9483 |
| --- /dev/null |
| +++ b/ui/gl/gl_driver_workarounds.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_GL_GL_DRIVER_WORKAROUNDS_H_ |
| +#define UI_GL_GL_DRIVER_WORKAROUNDS_H_ |
| + |
| +#include "ui/gl/gl_export.h" |
| + |
| +namespace gl { |
| +namespace workarounds { |
| + |
| +// glClearColor does not always work on Intel 6xxx Mac drivers. See |
| +// crbug.com/710443. |
| +GL_EXPORT extern bool clearToBoundaryValuesIsBroken; |
|
Zhenyao Mo
2017/06/19 21:47:20
wrong naming convention
Zhenyao Mo
2017/06/19 21:47:20
I really think we should avoid global variables.
jiajia.qin
2017/06/20 04:22:45
Done.
|
| + |
| +} // namespace workarounds |
| +} // namespace gl |
| + |
| +#endif // UI_GL_GL_DRIVER_WORKAROUNDS_H_ |