blob: 7b3ab25a81099d2eabd31cef5144494beac1a593 [file] [log] [blame]
// 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.
#include "base/command_line.h"
#include "base/logging.h"
#include "chromecast/base/chromecast_switches.h"
#include "chromecast/base/init_command_line_shlib.h"
#include "chromecast/public/graphics_properties_shlib.h"
namespace chromecast {
bool GraphicsPropertiesShlib::IsSupported(
Resolution resolution,
const std::vector<std::string>& argv) {
InitCommandLineShlib(argv);
switch (resolution) {
case Resolution::k1080p:
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDesktopWindow1080p);
case Resolution::kUHDTV:
return false;
default:
NOTREACHED();
return false;
}
}
} // namespace chromecast