| Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| index 763fa94c2fa17b45e8d36f0901becb77e7adb90e..6592c1a1350ec5712ef63ede8d17cd2e32654fcf 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
|
| @@ -65,22 +65,16 @@ private:
|
|
|
| PaintArtifactCompositor::PaintArtifactCompositor()
|
| {
|
| + if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| + m_rootLayer = cc::Layer::Create(cc::LayerSettings());
|
| + m_webLayer = adoptPtr(Platform::current()->compositorSupport()->createLayerFromCCLayer(m_rootLayer.get()));
|
| }
|
|
|
| PaintArtifactCompositor::~PaintArtifactCompositor()
|
| {
|
| }
|
|
|
| -void PaintArtifactCompositor::initializeIfNeeded()
|
| -{
|
| - ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| - if (m_rootLayer)
|
| - return;
|
| -
|
| - m_rootLayer = cc::Layer::Create(cc::LayerSettings());
|
| - m_webLayer = adoptPtr(Platform::current()->compositorSupport()->createLayerFromCCLayer(m_rootLayer.get()));
|
| -}
|
| -
|
| namespace {
|
|
|
| static void appendDisplayItemToCcDisplayItemList(const DisplayItem& displayItem, cc::DisplayItemList* list)
|
|
|