Index: content/renderer/pepper/pepper_plugin_instance_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
index 768922ec459976eb4f1750f30bbfdd1f66fbd7c0..f8ff874610f67e3479e196a563bbac121fb44c4d 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -2043,6 +2043,14 @@ void PepperPluginInstanceImpl::OnThrottleStateChange() { |
SendDidChangeView(); |
} |
+void PepperPluginInstanceImpl::OnHiddenForPlaceholder(bool hidden) { |
+ if (hidden) { |
piman
2015/02/05 00:34:36
thinking about this a little more, you also need t
tommycli
2015/02/05 00:46:35
Done. I put this flag in the throttler, since dmic
|
+ container_->setWebLayer(nullptr); |
+ } else { |
+ UpdateLayer(true /* device_changed */); |
+ } |
+} |
+ |
void PepperPluginInstanceImpl::AddLatencyInfo( |
const std::vector<ui::LatencyInfo>& latency_info) { |
if (render_frame_ && render_frame_->GetRenderWidget()) { |