summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/gl_switches_util.cc
blob: d0bf6251dd3b8fc067776eea9d0197ededd1ae72 (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
// 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.

#include "ui/gl/gl_switches_util.h"

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

namespace gl {

bool IsPresentationCallbackEnabled() {
// TODO(peng): always enable once 776877 is fixed.
#if defined(OS_CHROMEOS)
  return true;
#else
  return base::CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnablePresentationCallback);
#endif
}

}  // namespace gl