Path: blob/main_old/src/tests/perf_tests/DrawCallPerfParams.cpp
1693 views
//1// Copyright 2017 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//5// DrawCallPerfParams.cpp:6// Parametrization for performance tests for ANGLE draw call overhead.7//89#include "DrawCallPerfParams.h"1011#include <sstream>1213DrawCallPerfParams::DrawCallPerfParams()14{15majorVersion = 2;16minorVersion = 0;17windowWidth = 64;18windowHeight = 64;1920// Lower the iteration count in debug.21#if !defined(NDEBUG)22iterationsPerStep = 100;23#else24iterationsPerStep = 20000;25#endif26runTimeSeconds = 10.0;27numTris = 1;28}2930DrawCallPerfParams::~DrawCallPerfParams() = default;3132std::string DrawCallPerfParams::story() const33{34std::stringstream strstr;3536strstr << RenderTestParams::story();3738return strstr.str();39}404142