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

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

Issue 183763016: Reduce compositing update in Silk's toggle_drawer by 20% (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the glitch Created 6 years, 10 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.h
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.h b/Source/core/rendering/compositing/CompositedLayerMapping.h
index 933a6cd841b8e8c81517ce29f55ee3142c5f22fc..f280e2d7ce2cb3bbe7ba6d85665b78f02b8ccd4a 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.h
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.h
@@ -27,6 +27,7 @@
#define CompositedLayerMapping_h
#include "core/rendering/RenderLayer.h"
+#include "core/rendering/compositing/GraphicsLayerUpdater.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/FloatPoint3D.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -94,7 +95,7 @@ public:
// Returns true if layer configuration changed.
bool updateGraphicsLayerConfiguration();
// Update graphics layer position and bounds.
- void updateGraphicsLayerGeometry(); // make private
+ GraphicsLayerUpdater::UpdateType updateGraphicsLayerGeometry(GraphicsLayerUpdater::UpdateType);
// Update whether layer needs blending.
void updateContentsOpaque();
@@ -195,6 +196,9 @@ public:
void setBlendMode(blink::WebBlendMode);
+ void setNeedsGeometryUpdate();
+ void willUpdateGeometryOfAllDecendants();
ojan 2014/03/05 18:29:51 Nit: This function name is confusing to me. Should
abarth-chromium 2014/03/05 23:12:19 Will do.
+
virtual String debugName(const GraphicsLayer*) OVERRIDE;
LayoutSize subpixelAccumulation() const { return m_subpixelAccumulation; }
@@ -353,12 +357,14 @@ private:
LayoutRect m_compositedBounds;
LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of the compositedBounds compared to absolute coordinates.
- bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make transform-origin work
- bool m_isMainFrameRenderViewLayer;
- bool m_requiresOwnBackingStoreForIntrinsicReasons;
- bool m_requiresOwnBackingStoreForAncestorReasons;
- bool m_canCompositeFilters;
- bool m_backgroundLayerPaintsFixedRootBackground;
+ bool m_artificiallyInflatedBounds : 1; // bounds had to be made non-zero to make transform-origin work
+ bool m_isMainFrameRenderViewLayer : 1;
+ bool m_requiresOwnBackingStoreForIntrinsicReasons : 1;
+ bool m_requiresOwnBackingStoreForAncestorReasons : 1;
+ bool m_canCompositeFilters : 1;
+ bool m_backgroundLayerPaintsFixedRootBackground : 1;
+ bool m_needToUpdateGeometry : 1;
+ bool m_needToUpdateGeometryOfAllDecendants : 1;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698