| OLD | NEW |
| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 ScrollRecorder::ScrollRecorder(GraphicsContext& context, | 22 ScrollRecorder::ScrollRecorder(GraphicsContext& context, |
| 23 const DisplayItemClient& client, | 23 const DisplayItemClient& client, |
| 24 PaintPhase phase, | 24 PaintPhase phase, |
| 25 const IntSize& currentOffset) | 25 const IntSize& currentOffset) |
| 26 : ScrollRecorder(context, | 26 : ScrollRecorder(context, |
| 27 client, | 27 client, |
| 28 DisplayItem::paintPhaseToScrollType(phase), | 28 DisplayItem::paintPhaseToScrollType(phase), |
| 29 currentOffset) {} | 29 currentOffset) {} |
| 30 | 30 |
| 31 ScrollRecorder::~ScrollRecorder() { | 31 ScrollRecorder::~ScrollRecorder() { |
| 32 m_context.getPaintController().endItem<EndScrollDisplayItem>( | 32 context_.GetPaintController().EndItem<EndScrollDisplayItem>( |
| 33 m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType)); | 33 client_, DisplayItem::ScrollTypeToEndScrollType(begin_item_type_)); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace blink | 36 } // namespace blink |
| OLD | NEW |