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

Unified Diff: content/common/gpu/media/video_encode_accelerator_unittest.cc

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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
Index: content/common/gpu/media/video_encode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_encode_accelerator_unittest.cc b/content/common/gpu/media/video_encode_accelerator_unittest.cc
index d94941cf5016a5e519ca98ce7b84ed7f5c777521..b612bd812a35041e086ba349317a3f8201daee27 100644
--- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
@@ -965,7 +965,7 @@ class VEAClient : public VideoEncodeAccelerator::Client {
unsigned int requested_subsequent_framerate_;
// The timer used to feed the encoder with the input frames.
- scoped_ptr<base::RepeatingTimer<VEAClient>> input_timer_;
+ scoped_ptr<base::RepeatingTimer> input_timer_;
};
VEAClient::VEAClient(TestStream* test_stream,
@@ -1209,7 +1209,7 @@ void VEAClient::RequireBitstreamBuffers(unsigned int input_count,
}
if (g_env->run_at_fps()) {
- input_timer_.reset(new base::RepeatingTimer<VEAClient>());
+ input_timer_.reset(new base::RepeatingTimer());
input_timer_->Start(
FROM_HERE, base::TimeDelta::FromSeconds(1) / current_framerate_,
base::Bind(&VEAClient::OnInputTimer, base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698