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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 233323004: Move RenderLayerCompositor trigger caching to be when settings change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed WebViewTest.SetBaseBackgroundColorAndBlendWithExistingContent Created 6 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 | « Source/core/frame/FrameView.h ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index e4b516cfe5339a4d857ed7f6b7ca924a3046f6ec..0af087825fa983f9fd8e634a9d2c4aba86aa9563 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -606,6 +606,12 @@ void FrameView::calculateScrollbarModesForLayoutAndSetViewportRenderer(Scrollbar
}
}
+void FrameView::updateAcceleratedCompositingSettings()
+{
+ if (RenderView* renderView = this->renderView())
+ renderView->compositor()->updateAcceleratedCompositingSettings();
+}
+
void FrameView::updateCompositingLayersAfterStyleChange()
{
TRACE_EVENT0("webkit", "FrameView::updateCompositingLayersAfterStyleChange");
@@ -621,9 +627,6 @@ void FrameView::updateCompositingLayersAfterStyleChange()
// https://code.google.com/p/chromium/issues/detail?id=343756
DisableCompositingQueryAsserts disabler;
- // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
- renderView->compositor()->cacheAcceleratedCompositingFlags();
-
// Sometimes we will change a property (for example, z-index) that will not
// cause a layout, but will require us to update compositing state. We only
// need to do this if a layout is not already scheduled.
@@ -644,8 +647,7 @@ void FrameView::updateCompositingLayersAfterLayout()
// https://code.google.com/p/chromium/issues/detail?id=343756
DisableCompositingQueryAsserts disabler;
- // This call will make sure the cached hasAcceleratedCompositing is updated from the pref
- renderView->compositor()->cacheAcceleratedCompositingFlags();
+ renderView->compositor()->updateForceCompositingMode();
renderView->compositor()->updateCompositingRequirementsState();
renderView->compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterLayout);
}
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698