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

Side by Side Diff: third_party/WebKit/Source/core/paint/ScrollRecorder.cpp

Issue 2713673005: client-goodbye
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/ScrollRecorder.h" 5 #include "core/paint/ScrollRecorder.h"
6 6
7 #include "platform/graphics/GraphicsContext.h" 7 #include "platform/graphics/GraphicsContext.h"
8 #include "platform/graphics/paint/PaintController.h" 8 #include "platform/graphics/paint/PaintController.h"
9 #include "platform/graphics/paint/ScrollDisplayItem.h" 9 #include "platform/graphics/paint/ScrollDisplayItem.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 ScrollRecorder::ScrollRecorder(GraphicsContext& context, 13 ScrollRecorder::ScrollRecorder(
14 const DisplayItemClient& client, 14 GraphicsContext& context,
15 DisplayItem::Type type, 15 DisplayItem::Type type,
16 const IntSize& currentOffset) 16 const IntSize& currentOffset,
17 : m_client(client), m_beginItemType(type), m_context(context) { 17 const LayoutRect& visualRect,
18 const WTF::String& debugName,
19 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize)
20 : m_client(visualRect,
21 debugName,
22 paintedOutputOfObjectHasNoEffectRegardlessOfSize),
23 m_beginItemType(type),
24 m_context(context) {
18 m_context.getPaintController().createAndAppend<BeginScrollDisplayItem>( 25 m_context.getPaintController().createAndAppend<BeginScrollDisplayItem>(
19 m_client, m_beginItemType, currentOffset); 26 m_client, m_beginItemType, currentOffset);
20 } 27 }
21 28
22 ScrollRecorder::ScrollRecorder(GraphicsContext& context, 29 ScrollRecorder::ScrollRecorder(
23 const DisplayItemClient& client, 30 GraphicsContext& context,
24 PaintPhase phase, 31 PaintPhase phase,
25 const IntSize& currentOffset) 32 const IntSize& currentOffset,
33 const LayoutRect& visualRect,
34 const WTF::String& debugName,
35 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize)
26 : ScrollRecorder(context, 36 : ScrollRecorder(context,
27 client,
28 DisplayItem::paintPhaseToScrollType(phase), 37 DisplayItem::paintPhaseToScrollType(phase),
29 currentOffset) {} 38 currentOffset,
39 visualRect,
40 debugName,
41 paintedOutputOfObjectHasNoEffectRegardlessOfSize) {}
30 42
31 ScrollRecorder::~ScrollRecorder() { 43 ScrollRecorder::~ScrollRecorder() {
32 m_context.getPaintController().endItem<EndScrollDisplayItem>( 44 m_context.getPaintController().endItem<EndScrollDisplayItem>(
33 m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType)); 45 m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType));
34 } 46 }
35 47
36 } // namespace blink 48 } // namespace blink
OLDNEW
« 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