summaryrefslogtreecommitdiffstats
path: root/gpu/perftests
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/perftests')
-rw-r--r--gpu/perftests/texture_upload_perftest.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gpu/perftests/texture_upload_perftest.cc b/gpu/perftests/texture_upload_perftest.cc
index c14a151..b425272 100644
--- a/gpu/perftests/texture_upload_perftest.cc
+++ b/gpu/perftests/texture_upload_perftest.cc
@@ -349,8 +349,11 @@ class TextureUploadPerfTest : public testing::Test {
UploadTexture(texture_id, size, pixels, format, subimage);
tex_timers.Record();
- MeasurementTimers draw_timers(gpu_timing_client_.get());
+ MeasurementTimers first_draw_timers(gpu_timing_client_.get());
+ glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
+ first_draw_timers.Record();
+ MeasurementTimers draw_timers(gpu_timing_client_.get());
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
draw_timers.Record();
@@ -374,6 +377,8 @@ class TextureUploadPerfTest : public testing::Test {
if (!gpu_timer_errors) {
measurements.push_back(tex_timers.GetAsMeasurement(
subimage ? "texsubimage2d" : "teximage2d"));
+ measurements.push_back(
+ first_draw_timers.GetAsMeasurement("firstdrawarrays"));
measurements.push_back(draw_timers.GetAsMeasurement("drawarrays"));
measurements.push_back(finish_timers.GetAsMeasurement("finish"));
}