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

Unified Diff: ui/gl/gl_driver_workarounds.h

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: workaround at gl_gl_api_implementation.cc Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698