Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / paint / ScrollRecorder.h
blobf0421a28316f36ce37a9e9f39a0b1aede24152ae
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
3 // found in the LICENSE file.
5 #ifndef ScrollRecorder_h
6 #define ScrollRecorder_h
8 #include "core/CoreExport.h"
9 #include "core/paint/PaintPhase.h"
10 #include "platform/geometry/IntSize.h"
11 #include "platform/graphics/paint/DisplayItem.h"
12 #include "wtf/FastAllocBase.h"
14 namespace blink {
16 class GraphicsContext;
18 // Emits display items which represent a region which is scrollable, so that it
19 // can be translated by the scroll offset.
20 class CORE_EXPORT ScrollRecorder {
21 WTF_MAKE_FAST_ALLOCATED(ScrollRecorder);
22 public:
23 ScrollRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPhase, const IntSize& currentOffset);
24 ~ScrollRecorder();
25 private:
26 DisplayItemClientWrapper m_client;
27 DisplayItem::Type m_beginItemType;
28 GraphicsContext& m_context;
31 } // namespace blink
33 #endif // ScrollRecorder_h