| // 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 |