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

Unified Diff: media/filters/pipeline_integration_test_base.cc

Issue 12096081: Replace VideoRendererBase Get/PutCurrentFrame() with a VideoFrame-containing callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: media/filters/pipeline_integration_test_base.cc
diff --git a/media/filters/pipeline_integration_test_base.cc b/media/filters/pipeline_integration_test_base.cc
index 911647607bb26676523af64581e1c05c10c6f296..b065b57561f2d504bd5803d19ffd2a102f58fe1d 100644
--- a/media/filters/pipeline_integration_test_base.cc
+++ b/media/filters/pipeline_integration_test_base.cc
@@ -242,14 +242,11 @@ void PipelineIntegrationTestBase::SetDecryptor(
decryptor_ready_cb.Run(decryptor);
}
-void PipelineIntegrationTestBase::OnVideoRendererPaint() {
+void PipelineIntegrationTestBase::OnVideoRendererPaint(
+ const scoped_refptr<VideoFrame>& frame) {
if (!hashing_enabled_)
return;
- scoped_refptr<VideoFrame> frame;
- renderer_->GetCurrentFrame(&frame);
- if (frame)
- frame->HashFrameForTesting(&md5_context_);
- renderer_->PutCurrentFrame(frame);
+ frame->HashFrameForTesting(&md5_context_);
}
std::string PipelineIntegrationTestBase::GetVideoHash() {

Powered by Google App Engine
This is Rietveld 408576698