Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: gpu/perftests/texture_upload_perftest.cc

Issue 1031463002: Time of first use cost of upload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the suffix "cost". Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/perftests/texture_upload_perftest.cc
diff --git a/gpu/perftests/texture_upload_perftest.cc b/gpu/perftests/texture_upload_perftest.cc
index c14a15129a3a2e91f99a72ffb7433330e9a3e5e0..b4252728d08a5e4054f6dabe4bf5bb0050e112c8 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"));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698