summaryrefslogtreecommitdiffstats
path: root/content/renderer/browser_plugin/browser_plugin_compositing_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/browser_plugin/browser_plugin_compositing_helper.cc')
-rw-r--r--content/renderer/browser_plugin/browser_plugin_compositing_helper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/browser_plugin/browser_plugin_compositing_helper.cc b/content/renderer/browser_plugin/browser_plugin_compositing_helper.cc
index 63fc12e..e056618 100644
--- a/content/renderer/browser_plugin/browser_plugin_compositing_helper.cc
+++ b/content/renderer/browser_plugin/browser_plugin_compositing_helper.cc
@@ -210,4 +210,9 @@ void BrowserPluginCompositingHelper::OnBuffersSwapped(
last_mailbox_valid_ = current_mailbox_valid;
}
+void BrowserPluginCompositingHelper::UpdateVisibility(bool visible) {
+ if (texture_layer_)
+ texture_layer_->setIsDrawable(visible);
+}
+
} // namespace content