gpu_preference.h 796 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GL_GPU_PREFERENCE_H_
  5. #define UI_GL_GPU_PREFERENCE_H_
  6. namespace gl {
  7. // On dual-GPU systems, expresses a preference for using the low power
  8. // or high performance GPU. On systems that have dual-GPU support (see
  9. // GpuDataManagerImpl), resource sharing only works between
  10. // contexts that are created with the same GPU preference.
  11. //
  12. // This API will likely need to be adjusted as the functionality is
  13. // implemented on more operating systems.
  14. enum class GpuPreference {
  15. kNone,
  16. kDefault,
  17. kLowPower,
  18. kHighPerformance,
  19. kMaxValue = kHighPerformance
  20. };
  21. } // namespace gl
  22. #endif // UI_GL_GPU_PREFERENCE_H_