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 "platform/graphics/paint/PaintRecordBuilder.h" | 5 #include "platform/graphics/paint/PaintRecordBuilder.h" |
6 | 6 |
7 #include "platform/geometry/FloatRect.h" | 7 #include "platform/geometry/FloatRect.h" |
8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
9 #include "platform/graphics/paint/PaintController.h" | 9 #include "platform/graphics/paint/PaintController.h" |
10 #include "wtf/PtrUtil.h" | 10 #include "wtf/PtrUtil.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 m_context->setPrinting(containingContext->printing()); | 44 m_context->setPrinting(containingContext->printing()); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 PaintRecordBuilder::~PaintRecordBuilder() { | 48 PaintRecordBuilder::~PaintRecordBuilder() { |
49 #if DCHECK_IS_ON() | 49 #if DCHECK_IS_ON() |
50 m_paintController->setUsage(PaintController::ForNormalUsage); | 50 m_paintController->setUsage(PaintController::ForNormalUsage); |
51 #endif | 51 #endif |
52 } | 52 } |
53 | 53 |
54 sk_sp<PaintRecord> PaintRecordBuilder::endRecording() { | 54 sk_sp<PaintRecord> PaintRecordBuilder::endRecording( |
| 55 const PropertyTreeState& propertyTreeState) { |
55 m_context->beginRecording(m_bounds); | 56 m_context->beginRecording(m_bounds); |
56 m_paintController->commitNewDisplayItems(); | 57 m_paintController->commitNewDisplayItems(); |
57 m_paintController->paintArtifact().replay(m_bounds, *m_context); | 58 m_paintController->paintArtifact().replay(m_bounds, *m_context, |
| 59 propertyTreeState); |
58 return m_context->endRecording(); | 60 return m_context->endRecording(); |
59 } | 61 } |
60 | 62 |
61 } // namespace blink | 63 } // namespace blink |
OLD | NEW |