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

Unified Diff: third_party/WebKit/Source/core/paint/ScrollRecorder.cpp

Issue 2713673005: client-goodbye
Patch Set: Created 3 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: third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
index 5d788de3eb3a19f4f97b34374cee44859d296d34..d282245a92c70a4e113e901f879af66053f89b25 100644
--- a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
@@ -10,23 +10,35 @@
namespace blink {
-ScrollRecorder::ScrollRecorder(GraphicsContext& context,
- const DisplayItemClient& client,
- DisplayItem::Type type,
- const IntSize& currentOffset)
- : m_client(client), m_beginItemType(type), m_context(context) {
+ScrollRecorder::ScrollRecorder(
+ GraphicsContext& context,
+ DisplayItem::Type type,
+ const IntSize& currentOffset,
+ const LayoutRect& visualRect,
+ const WTF::String& debugName,
+ bool paintedOutputOfObjectHasNoEffectRegardlessOfSize)
+ : m_client(visualRect,
+ debugName,
+ paintedOutputOfObjectHasNoEffectRegardlessOfSize),
+ m_beginItemType(type),
+ m_context(context) {
m_context.getPaintController().createAndAppend<BeginScrollDisplayItem>(
m_client, m_beginItemType, currentOffset);
}
-ScrollRecorder::ScrollRecorder(GraphicsContext& context,
- const DisplayItemClient& client,
- PaintPhase phase,
- const IntSize& currentOffset)
+ScrollRecorder::ScrollRecorder(
+ GraphicsContext& context,
+ PaintPhase phase,
+ const IntSize& currentOffset,
+ const LayoutRect& visualRect,
+ const WTF::String& debugName,
+ bool paintedOutputOfObjectHasNoEffectRegardlessOfSize)
: ScrollRecorder(context,
- client,
DisplayItem::paintPhaseToScrollType(phase),
- currentOffset) {}
+ currentOffset,
+ visualRect,
+ debugName,
+ paintedOutputOfObjectHasNoEffectRegardlessOfSize) {}
ScrollRecorder::~ScrollRecorder() {
m_context.getPaintController().endItem<EndScrollDisplayItem>(
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScrollRecorder.h ('k') | third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698