graphics_properties_shlib.h 955 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2015 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 CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_
  5. #define CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_
  6. #include <string>
  7. #include <vector>
  8. #include "chromecast_export.h"
  9. namespace chromecast {
  10. class CHROMECAST_EXPORT GraphicsPropertiesShlib {
  11. public:
  12. // Optional resolutions that cast_shell queries for. 720p (1280x720) is
  13. // assumed to be supported.
  14. enum Resolution {
  15. k1080p, // 1920x1080
  16. kUHDTV // 3840x2160
  17. };
  18. // Returns whether or not the given display resolution is supported.
  19. // Called in the browser process; command line args are provided.
  20. static bool IsSupported(Resolution resolution,
  21. const std::vector<std::string>& argv);
  22. };
  23. } // namespace chromecast
  24. #endif // CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_