summaryrefslogtreecommitdiff
path: root/chromium/chromecast/public/graphics_properties_shlib.h
blob: 693a7c1c52d2d57e34ede8bb8dde019852bf0480 (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
25
26
27
28
29
30
31
32
// Copyright 2015 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.

#ifndef CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_
#define CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_

#include <string>
#include <vector>

#include "chromecast_export.h"

namespace chromecast {

class CHROMECAST_EXPORT GraphicsPropertiesShlib {
 public:
  // Optional resolutions that cast_shell queries for.  720p (1280x720) is
  // assumed to be supported.
  enum Resolution {
    k1080p,  // 1920x1080
    kUHDTV   // 3840x2160
  };

  // Returns whether or not the given display resolution is supported.
  // Called in the browser process; command line args are provided.
  static bool IsSupported(Resolution resolution,
                          const std::vector<std::string>& argv);
};

}  // namespace chromecast

#endif  // CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_