~linaro-graphics-wg/glmark2/demo

« back to all changes in this revision

Viewing changes to src/benchmark.cpp

  • Committer: Alexandros Frantzis
  • Date: 2012-02-15 15:32:20 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20120215153220-93euvpwuobqmvbhw
Benchmark: Add method to query whether the benchmark needs decorations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    scene_.unload();
121
121
}
122
122
 
 
123
bool
 
124
Benchmark::needs_decoration() const
 
125
{
 
126
    for (vector<OptionPair>::const_iterator iter = options_.begin();
 
127
         iter != options_.end();
 
128
         iter++)
 
129
    {
 
130
        if (iter->first == "show-fps" && iter->second == "true")
 
131
            return true;
 
132
    }
 
133
 
 
134
    return false;
 
135
}
 
136
 
123
137
void
124
138
Benchmark::load_options()
125
139
{