1 //
2 // Copyright 2017 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // DrawCallPerfParams.cpp:
7 //   Parametrization for performance tests for ANGLE draw call overhead.
8 //
9 
10 #include "DrawCallPerfParams.h"
11 
12 #include <sstream>
13 
DrawCallPerfParams()14 DrawCallPerfParams::DrawCallPerfParams()
15 {
16     majorVersion = 2;
17     minorVersion = 0;
18     windowWidth  = 64;
19     windowHeight = 64;
20 
21 // Lower the iteration count in debug.
22 #if !defined(NDEBUG)
23     iterationsPerStep = 100;
24 #else
25     iterationsPerStep = 20000;
26 #endif
27     runTimeSeconds = 10.0;
28     numTris        = 1;
29 }
30 
31 DrawCallPerfParams::~DrawCallPerfParams() = default;
32 
story() const33 std::string DrawCallPerfParams::story() const
34 {
35     std::stringstream strstr;
36 
37     strstr << RenderTestParams::story();
38 
39     return strstr.str();
40 }
41