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

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 win build Created 6 years, 9 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/rendering/RenderLayer.cpp ('k') | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..286a2c06067e60f28eda80760840bafbcbb2f233 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 clearNeedsGeometryUpdate();
+
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
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698