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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 328553004: Get rid of scheduleSVGFilterLayerUpdateHack call for plugins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index 9962a4eb0b0fc3d559e756ca5517fdb919a4e6e2..81321be73d5dd7d3ce27a8839b3d77c0bd38cad6 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -173,6 +173,13 @@ void HTMLPlugInElement::createPluginWithoutRenderer()
loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false);
}
+bool HTMLPlugInElement::shouldAccelerate()
esprehn 2014/06/10 02:19:09 const ?
+{
+ if (Widget* widget = ownedWidget())
+ return widget->isPluginView() && toPluginView(widget)->platformLayer();
+ return false;
+}
+
void HTMLPlugInElement::detach(const AttachContext& context)
{
// Update the widget the next time we attach (detaching destroys the plugin).

Powered by Google App Engine
This is Rietveld 408576698