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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 270383002: Remove will-change: contents GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index 5c12881a8f0c78500ba03cc1f7248613ecdc5f7d..f9860ac2d391db22234c8ef10db6f752ce69640c 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -233,7 +233,6 @@ void CompositedLayerMapping::createPrimaryGraphicsLayer()
updateOpacity(renderer()->style());
updateTransform(renderer()->style());
updateFilters(renderer()->style());
- updateHasGpuRasterizationHint(renderer()->style());
if (RuntimeEnabledFeatures::cssCompositingEnabled()) {
updateLayerBlendMode(renderer()->style());
@@ -311,11 +310,6 @@ void CompositedLayerMapping::updateIsRootForIsolatedGroup()
m_graphicsLayer->setIsRootForIsolatedGroup(isolate);
}
-void CompositedLayerMapping::updateHasGpuRasterizationHint(const RenderStyle* style)
-{
- m_graphicsLayer->setHasGpuRasterizationHint(style->hasWillChangeGpuRasterizationHint());
-}
-
void CompositedLayerMapping::updateContentsOpaque()
{
// For non-root layers, background is always painted by the primary graphics layer.
@@ -843,7 +837,6 @@ void CompositedLayerMapping::updateGraphicsLayerGeometry(GraphicsLayerUpdater::U
updateIsRootForIsolatedGroup();
}
- updateHasGpuRasterizationHint(renderer()->style());
updateContentsRect();
updateBackgroundColor();
updateDrawsContent();

Powered by Google App Engine
This is Rietveld 408576698