| Index: Source/core/paint/TransformRecorder.cpp
|
| diff --git a/Source/core/paint/TransformRecorder.cpp b/Source/core/paint/TransformRecorder.cpp
|
| index 587f8c99cd549ca24e6fd2bf25b5d216bd1b7963..3501d5f5fc3cc5febb1f94dc01fda03b49d2a60b 100644
|
| --- a/Source/core/paint/TransformRecorder.cpp
|
| +++ b/Source/core/paint/TransformRecorder.cpp
|
| @@ -21,15 +21,18 @@ TransformRecorder::TransformRecorder(GraphicsContext& context, const DisplayItem
|
| if (m_skipRecordingForIdentityTransform)
|
| return;
|
|
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| - return;
|
| - m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
|
| - } else {
|
| - BeginTransformDisplayItem beginTransform(m_client, transform);
|
| - beginTransform.replay(m_context);
|
| - }
|
| + ALLOW_UNUSED_LOCAL(m_skipRecordingForIdentityTransform);
|
| + ALLOW_UNUSED_LOCAL(m_context);
|
| + ALLOW_UNUSED_LOCAL(m_client);
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (m_context.displayItemList()->displayItemConstructionIsDisabled())
|
| + // return;
|
| + // m_context.displayItemList()->add(BeginTransformDisplayItem::create(m_client, transform));
|
| + //} else {
|
| + // BeginTransformDisplayItem beginTransform(m_client, transform);
|
| + // beginTransform.replay(m_context);
|
| + //}
|
| }
|
|
|
| TransformRecorder::~TransformRecorder()
|
| @@ -37,18 +40,18 @@ TransformRecorder::~TransformRecorder()
|
| if (m_skipRecordingForIdentityTransform)
|
| return;
|
|
|
| - if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| - ASSERT(m_context.displayItemList());
|
| - if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
|
| - if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
|
| - m_context.displayItemList()->removeLastDisplayItem();
|
| - else
|
| - m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
|
| - }
|
| - } else {
|
| - EndTransformDisplayItem endTransform(m_client);
|
| - endTransform.replay(m_context);
|
| - }
|
| + //if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| + // ASSERT(m_context.displayItemList());
|
| + // if (!m_context.displayItemList()->displayItemConstructionIsDisabled()) {
|
| + // if (m_context.displayItemList()->lastDisplayItemIsNoopBegin())
|
| + // m_context.displayItemList()->removeLastDisplayItem();
|
| + // else
|
| + // m_context.displayItemList()->add(EndTransformDisplayItem::create(m_client));
|
| + // }
|
| + //} else {
|
| + // EndTransformDisplayItem endTransform(m_client);
|
| + // endTransform.replay(m_context);
|
| + //}
|
| }
|
|
|
| } // namespace blink
|
|
|