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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2828023002: Set GPU rasterization trigger for OOPIFs (Closed)
Patch Set: Back to first fix Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698