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

Unified Diff: media/test/pipeline_integration_test_base.cc

Issue 1996763002: Make painting a single frame a permanent API on VideoRendererSink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 7 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 | « media/test/pipeline_integration_test_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_test_base.cc
diff --git a/media/test/pipeline_integration_test_base.cc b/media/test/pipeline_integration_test_base.cc
index a87f1810baac2e25e54cf74333dd3d81ba1ad08e..38421836760246804bb5119158a2244a1c4d3cac 100644
--- a/media/test/pipeline_integration_test_base.cc
+++ b/media/test/pipeline_integration_test_base.cc
@@ -354,8 +354,9 @@ void PipelineIntegrationTestBase::OnVideoFramePaint(
int result;
if (frame->metadata()->GetInteger(VideoFrameMetadata::COLOR_SPACE, &result))
last_video_frame_color_space_ = static_cast<ColorSpace>(result);
- if (!hashing_enabled_)
+ if (!hashing_enabled_ || last_frame_ == frame)
return;
+ last_frame_ = frame;
VideoFrame::HashFrameForTesting(&md5_context_, frame);
}
« no previous file with comments | « media/test/pipeline_integration_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698