summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/gl_utils.h
blob: 32eacdaa4fc361590abd5213398b1577b82414ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 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.

// This file contains some useful utilities for the ui/gl classes.

#ifndef UI_GL_GL_UTILS_H_
#define UI_GL_GL_UTILS_H_

#include "base/command_line.h"
#include "build/build_config.h"
#include "ui/gl/gl_export.h"

#if defined(OS_ANDROID)
#include "base/files/scoped_file.h"
#endif

namespace gl {
GL_EXPORT void Crash();
GL_EXPORT void Hang();

#if defined(OS_ANDROID)
GL_EXPORT base::ScopedFD MergeFDs(base::ScopedFD a, base::ScopedFD b);
#endif

GL_EXPORT bool UsePassthroughCommandDecoder(
    const base::CommandLine* command_line);

#if defined(OS_WIN)
GL_EXPORT bool AreOverlaysSupportedWin();
#endif

}  // namespace gl

#endif  // UI_GL_GL_UTILS_H_