Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| index fa6de6c794c627484f677b54e027ac1b1481b168..d9013d2f8645ce092bc8f2f9b8f10e8ff957dc2f 100644 |
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h |
| @@ -68,7 +68,7 @@ enum GraphicsLayerUpdateScope { |
| // |
| // Currently (Oct. 2013) there is one CompositedLayerMapping for each Layer, |
| // but this is likely to evolve soon. |
| -class CompositedLayerMapping final : public GraphicsLayerClient { |
| +class PLATFORM_EXPORT CompositedLayerMapping final : public GraphicsLayerClient { |
|
chrishtr
2015/10/09 19:10:29
This is needed to expose the class for testing acr
|
| WTF_MAKE_NONCOPYABLE(CompositedLayerMapping); WTF_MAKE_FAST_ALLOCATED(CompositedPaintLayerMapping); |
| public: |
| explicit CompositedLayerMapping(PaintLayer&); |
| @@ -147,7 +147,9 @@ public: |
| // GraphicsLayerClient interface |
| void notifyAnimationStarted(const GraphicsLayer*, double monotonicTime, int group) override; |
| void notifyTextPainted() override; |
| + |
| void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clip) const override; |
| + void paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase) const override; |
| bool isTrackingPaintInvalidations() const override; |
| #if ENABLE(ASSERT) |
| @@ -205,6 +207,8 @@ public: |
| String debugName() const { return "CompositedLayerMapping for " + owningLayer().debugName(); } |
| private: |
| + static IntRect computeInterestRect(const GraphicsLayer*, LayoutObject* owningLayoutObject); |
| + |
| static const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObject*, const Vector<GraphicsLayerPaintInfo>& layers, unsigned maxSquashedLayerIndex); |
| // Helper methods to updateGraphicsLayerGeometry: |
| @@ -428,6 +432,8 @@ private: |
| unsigned m_backgroundLayerPaintsFixedRootBackground : 1; |
| unsigned m_scrollingContentsAreEmpty : 1; |
| + |
| + friend class CompositedLayerMappingTest; |
| }; |
| } // namespace blink |