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

Unified Diff: ui/gl/gl_context.h

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: rebased, rename setGLWorkarounds to set_gl_workarounds Created 3 years, 5 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
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index 0d1aa6d0f40492d74e3f056cc3ffbd53e4a2ef74..ff9cfdbbb5d7536d04e7f8dc8b48ec3fd069ad7a 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -16,6 +16,7 @@
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_share_group.h"
#include "ui/gl/gl_state_restorer.h"
+#include "ui/gl/gl_workarounds.h"
#include "ui/gl/gpu_preference.h"
namespace gl {
@@ -96,6 +97,9 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// Creates a GPUTimingClient class which abstracts various GPU Timing exts.
virtual scoped_refptr<GPUTimingClient> CreateGPUTimingClient() = 0;
+ // Set the GL workarounds.
+ void SetGLWorkarounds(const GLWorkarounds& workarounds);
+
// Gets the GLStateRestorer for the context.
GLStateRestorer* GetGLStateRestorer();
@@ -222,6 +226,8 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
std::unique_ptr<GLVersionInfo> GenerateGLVersionInfo();
+ GLWorkarounds gl_workarounds_;
+
bool static_bindings_initialized_ = false;
bool dynamic_bindings_initialized_ = false;
std::unique_ptr<DriverGL> driver_gl_;
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698