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

Unified Diff: cc/layers/video_frame_provider_client_impl.cc

Issue 2664943002: Mark Layer Damaged When The Client Is Gone (Closed)
Patch Set: Add test Created 3 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
« no previous file with comments | « no previous file | cc/layers/video_frame_provider_client_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_frame_provider_client_impl.cc
diff --git a/cc/layers/video_frame_provider_client_impl.cc b/cc/layers/video_frame_provider_client_impl.cc
index 751d32f83b29ee471b68dc2ba897464837f79fb0..02decbd6f83ab4b8ebb1d555009b0b556c47b7fe 100644
--- a/cc/layers/video_frame_provider_client_impl.cc
+++ b/cc/layers/video_frame_provider_client_impl.cc
@@ -127,6 +127,8 @@ void VideoFrameProviderClientImpl::StopRendering() {
DCHECK(!stopped_);
client_->RemoveVideoFrameController(this);
rendering_ = false;
+ if (active_video_layer_)
+ active_video_layer_->SetNeedsRedraw();
}
void VideoFrameProviderClientImpl::DidReceiveFrame() {
« no previous file with comments | « no previous file | cc/layers/video_frame_provider_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698