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). |