blob: df9e4f9ad56b8ebabc12c9419b6d0f7f2c5c0d83 [file] [log] [blame]
// 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) || defined(OS_ANDROID)
return true;
#else
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnablePresentationCallback);
#endif
}
} // namespace gl