| 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 16 matching lines...) Expand all Loading... |
| 27 const IntSize& currentOffset) | 27 const IntSize& currentOffset) |
| 28 : ScrollRecorder(context, | 28 : ScrollRecorder(context, |
| 29 client, | 29 client, |
| 30 DisplayItem::paintPhaseToScrollType(phase), | 30 DisplayItem::paintPhaseToScrollType(phase), |
| 31 currentOffset) {} | 31 currentOffset) {} |
| 32 | 32 |
| 33 ScrollRecorder::~ScrollRecorder() { | 33 ScrollRecorder::~ScrollRecorder() { |
| 34 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) | 34 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 35 return; | 35 return; |
| 36 m_context.getPaintController().endItem<EndScrollDisplayItem>( | 36 m_context.getPaintController().endItem<EndScrollDisplayItem>( |
| 37 m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType)); | 37 m_client, DisplayItem::ScrollTypeToEndScrollType(m_beginItemType)); |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| OLD | NEW |