summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/gl_workarounds.h
blob: 8660dba058b5a3101fb378144c6a60f588b35dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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_WORKAROUNDS_H_
#define UI_GL_GL_WORKAROUNDS_H_

namespace gl {

struct GLWorkarounds {
  // glClearColor does not always work on Intel 6xxx Mac drivers. See
  // crbug.com/710443.
  bool clear_to_zero_or_one_broken = false;
  // Reset texImage2D base level to workaround pixel comparison failure
  // above Mac OS 10.12.4 on Intel Mac. See crbug.com/705865.
  bool reset_teximage2d_base_level = false;
};

}  // namespace gl

#endif  // UI_GL_GL_WORKAROUNDS_H_