| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/CompositingRecorder.h" | 6 #include "core/paint/CompositingRecorder.h" |
| 7 | 7 |
| 8 #include "core/rendering/RenderLayer.h" | 8 #include "core/layout/Layer.h" |
| 9 #include "core/rendering/RenderObject.h" | 9 #include "core/rendering/RenderObject.h" |
| 10 #include "platform/graphics/GraphicsLayer.h" | 10 #include "platform/graphics/GraphicsLayer.h" |
| 11 #include "platform/graphics/paint/CompositingDisplayItem.h" | 11 #include "platform/graphics/paint/CompositingDisplayItem.h" |
| 12 #include "platform/graphics/paint/DisplayItemList.h" | 12 #include "platform/graphics/paint/DisplayItemList.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 CompositingRecorder::CompositingRecorder(GraphicsContext* graphicsContext, Displ
ayItemClient client, const CompositeOperator preCompositeOp, const WebBlendMode&
preBlendMode, const float opacity, const CompositeOperator postCompositeOp) | 16 CompositingRecorder::CompositingRecorder(GraphicsContext* graphicsContext, Displ
ayItemClient client, const CompositeOperator preCompositeOp, const WebBlendMode&
preBlendMode, const float opacity, const CompositeOperator postCompositeOp) |
| 17 : m_client(client) | 17 : m_client(client) |
| 18 , m_graphicsContext(graphicsContext) | 18 , m_graphicsContext(graphicsContext) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { | 31 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { |
| 32 ASSERT(m_graphicsContext->displayItemList()); | 32 ASSERT(m_graphicsContext->displayItemList()); |
| 33 m_graphicsContext->displayItemList()->add(EndCompositingDisplayItem::cre
ate(m_client, DisplayItem::EndCompositing)); | 33 m_graphicsContext->displayItemList()->add(EndCompositingDisplayItem::cre
ate(m_client, DisplayItem::EndCompositing)); |
| 34 } else { | 34 } else { |
| 35 EndCompositingDisplayItem endCompositingDisplayItem(m_client, DisplayIte
m::EndCompositing); | 35 EndCompositingDisplayItem endCompositingDisplayItem(m_client, DisplayIte
m::EndCompositing); |
| 36 endCompositingDisplayItem.replay(m_graphicsContext); | 36 endCompositingDisplayItem.replay(m_graphicsContext); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace blink | 40 } // namespace blink |
| OLD | NEW |