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

Unified Diff: Source/core/paint/LayerClipRecorder.cpp

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compile Created 6 years, 1 month 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/paint/LayerClipRecorder.cpp
diff --git a/Source/core/paint/ClipRecorder.cpp b/Source/core/paint/LayerClipRecorder.cpp
similarity index 90%
copy from Source/core/paint/ClipRecorder.cpp
copy to Source/core/paint/LayerClipRecorder.cpp
index 5c2e696bd3bd547ed5b772bfc43cce85e125acee..d0a9ee97b95e3e179e579dd25ded3b8665212032 100644
--- a/Source/core/paint/ClipRecorder.cpp
+++ b/Source/core/paint/LayerClipRecorder.cpp
@@ -3,8 +3,9 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/paint/ClipRecorder.h"
+#include "core/paint/LayerClipRecorder.h"
+#include "core/paint/ClipRecorder.h"
#include "core/rendering/ClipRect.h"
#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderView.h"
@@ -27,7 +28,7 @@ void EndClipDisplayItem::replay(GraphicsContext* context)
context->restore();
}
-ClipRecorder::ClipRecorder(const RenderLayerModelObject* renderer, GraphicsContext* graphicsContext, DisplayItem::Type clipType, const ClipRect& clipRect,
+LayerClipRecorder::LayerClipRecorder(const RenderLayerModelObject* renderer, GraphicsContext* graphicsContext, DisplayItem::Type clipType, const ClipRect& clipRect,
const LayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags, BorderRadiusClippingRule rule)
: m_graphicsContext(graphicsContext)
, m_renderer(renderer)
@@ -57,7 +58,7 @@ static bool inContainingBlockChain(RenderLayer* startLayer, RenderLayer* endLaye
return false;
}
-void ClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const LayerPaintingInfo& localPaintingInfo, GraphicsContext* context, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags,
+void LayerClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const LayerPaintingInfo& localPaintingInfo, GraphicsContext* context, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags,
BorderRadiusClippingRule rule, Vector<RoundedRect>& roundedRectClips)
{
// If the clip rect has been tainted by a border radius, then we have to walk up our layer chain applying the clips from
@@ -82,7 +83,7 @@ void ClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const Layer
}
}
-ClipRecorder::~ClipRecorder()
+LayerClipRecorder::~LayerClipRecorder()
{
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
OwnPtr<EndClipDisplayItem> endClip = adoptPtr(new EndClipDisplayItem(m_renderer));

Powered by Google App Engine
This is Rietveld 408576698