Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
index fe976466ae0b2ff3f3e91d42f7b8f12331eecd26..ae69e130b10a0f9fdf81937dcb99b5b2b688924c 100644 |
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
@@ -1074,6 +1074,14 @@ void WebFrameWidgetImpl::InitializeLayerTreeView() { |
if (layer_tree_view_) { |
GetPage()->LayerTreeViewInitialized(*layer_tree_view_, |
local_root_->GetFrame()->View()); |
+ |
+ // TODO(kenrb): Currently GPU rasterization is always enabled for OOPIFs. |
+ // This is okay because it is only necessarily to set the trigger to false |
+ // for certain cases that affect the top-level frame, but it would be better |
+ // to be consistent with the top-level frame. Ideally the logic should |
+ // be moved from WebViewImpl into WebFrameWidget and used for all local |
+ // frame roots. https://crbug.com/712794 |
+ layer_tree_view_->HeuristicsForGpuRasterizationUpdated(true); |
} |
// FIXME: only unittests, click to play, Android priting, and printing (for |