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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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: 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 30f7229d7651e304700e3264bfc9e4606960b07e..671a53333085fffd39e548696bd8f7c48168b0ef 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
@@ -127,8 +127,8 @@ public:
// If |visualRect| is not nullptr, it contains all pixels that might be painted by the display item client,
// in coordinate space of the layer's layout object.
// |visualRect| can be nullptr if we know it's unchanged and PaintController has cached the previous value.
- void invalidateDisplayItemClient(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect* visualRect);
- void invalidateDisplayItemClientOnScrollingContentsLayer(const DisplayItemClientWrapper&, PaintInvalidationReason, const LayoutRect* visualRect);
+ void invalidateDisplayItemClient(const DisplayItemClient&, PaintInvalidationReason, const LayoutRect* visualRect);
+ void invalidateDisplayItemClientOnScrollingContentsLayer(const DisplayItemClient&, PaintInvalidationReason, const LayoutRect* visualRect);
// Notification from the layoutObject that its content changed.
void contentChanged(ContentChangeType);
@@ -213,9 +213,6 @@ public:
void updateScrollingBlockSelection();
- DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
- String debugName() const { return "CompositedLayerMapping for " + owningLayer().debugName(); }
-
private:
IntRect recomputeInterestRect(const GraphicsLayer*) const;
static bool interestRectChangedEnoughToRepaint(const IntRect& previousInterestRect, const IntRect& newInterestRect, const IntSize& layerSize);
@@ -302,7 +299,7 @@ private:
static bool hasVisibleNonCompositingDescendant(PaintLayer* parent);
- void doPaintTask(const GraphicsLayerPaintInfo&, const PaintLayerFlags&, GraphicsContext*, const IntRect& clip) const;
+ void doPaintTask(const GraphicsLayerPaintInfo&, const GraphicsLayer&, const PaintLayerFlags&, GraphicsContext*, const IntRect& clip) const;
// Computes the background clip rect for the given squashed layer, up to any containing layer that is squashed into the
// same squashing layer and contains this squashed layer's clipping ancestor.

Powered by Google App Engine
This is Rietveld 408576698