chromium/third_party/angle/third_party/glmark2/src/src/options.cpp

/*
 * Copyright © 2011-2012 Linaro Limited
 *
 * This file is part of glcompbench.
 *
 * glcompbench is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * glcompbench is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with glcompbench.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *  Alexandros Frantzis <[email protected]>
 *  Jesse Barker <[email protected]>
 */

#include <cstring>
#include <cstdio>
#include <getopt.h>

#include "options.h"
#include "util.h"

std::vector<std::string> Options::benchmarks;
std::vector<std::string> Options::benchmark_files;
bool Options::validate =;
std::string Options::data_path =;
Options::FrameEnd Options::frame_end =;
std::pair<int,int> Options::size(800, 600);
bool Options::list_scenes =;
bool Options::show_all_options =;
bool Options::show_debug =;
bool Options::show_help =;
bool Options::reuse_context =;
bool Options::run_forever =;
bool Options::annotate =;
bool Options::offscreen =;
GLVisualConfig Options::visual_config;

static struct option long_options[] =;

/**
 * Parses a size string of the form WxH
 *
 * @param str the string to parse
 * @param size the parsed size (width, height)
 */
static void
parse_size(const std::string &str, std::pair<int,int> &size)
{}

/**
 * Parses a frame-end method string
 *
 * @param str the string to parse
 *
 * @return the parsed frame end method
 */
static Options::FrameEnd 
frame_end_from_str(const std::string &str)
{}

void
Options::print_help()
{}

bool
Options::parse_args(int argc, char **argv)
{}