Beispiel #1
0
void TestUnpackRowLength::TestAndOutput(int aNumIterations, FILE* aFile)
{
  TestGLRunner tgr(this);
  Duration d = tgr.Run(aNumIterations);
  OutputTestName(aFile);
  fprintf(aFile, ",%d,%d,%d,%d,%d,%.0f\n", mPixelSize, mTextureSize, mAlignment,
          mUploadWidth, mOffset, d.ToMilliseconds());
}
Beispiel #2
0
void TestGL::TestAndOutput(int aNumIterations, FILE* aFile)
{
  TestGLRunner tgr(this);
  Duration d = tgr.Run(aNumIterations);
  OutputTestName(aFile);

  int screenSize = 1000 * 1000;
  double numOfUploadsToFillScreen = screenSize/(mTextureSize*mTextureSize);
  double timePerUpload = d.ToMilliseconds() / aNumIterations;
  int timeToFillScreen = (int)(numOfUploadsToFillScreen * timePerUpload);
  fprintf(aFile, ",%10d,%10d,%10d,%10d,%10.0f\n", mPixelSize, mTextureSize, mAlignment, timeToFillScreen,
          d.ToMilliseconds());
}
Beispiel #3
0
void TestSuite :: Out( const std::string & type,
		  const std::string & msg ) {
	std::cout << type << ' ';
	OutputTestName( std::cout );
	std::cout << ' ' << msg << std::endl;
}