Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 290818d844baa79312a88722228738d6f7a39a2c..01949ce46567fbd3c40c58953aa1608dae4695c0 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -6,7 +6,6 @@
#include "cc/layers/content_layer_client.h"
#include "cc/layers/layer.h"
-#include "cc/layers/layer_settings.h"
#include "cc/layers/picture_layer.h"
#include "cc/playback/display_item_list.h"
#include "cc/playback/display_item_list_settings.h"
@@ -68,7 +67,7 @@ PaintArtifactCompositor::PaintArtifactCompositor()
{
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return;
- m_rootLayer = cc::Layer::Create(cc::LayerSettings());
+ m_rootLayer = cc::Layer::Create();
m_webLayer = adoptPtr(Platform::current()->compositorSupport()->createLayerFromCCLayer(m_rootLayer.get()));
}
@@ -185,7 +184,7 @@ scoped_refptr<cc::Layer> createClipLayer(const ClipPaintPropertyNode* node)
transform.PreconcatTransform(undoClipOffset);
}
- scoped_refptr<cc::Layer> layer = cc::Layer::Create(cc::LayerSettings());
+ scoped_refptr<cc::Layer> layer = cc::Layer::Create();
layer->SetIsDrawable(false);
layer->SetMasksToBounds(true);
layer->SetPosition(gfx::PointF());
@@ -306,7 +305,7 @@ scoped_refptr<cc::Layer> PaintArtifactCompositor::layerForPaintChunk(const Paint
transform.PreconcatTransform(undoClipOffset);
}
- scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(cc::LayerSettings(), contentLayerClient.get());
+ scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(contentLayerClient.get());
layer->SetBounds(combinedBounds.size());
layer->SetTransform(transform);
layer->SetIsDrawable(true);

Powered by Google App Engine
This is Rietveld 408576698