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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index f3f218570eb52a71f989222dc88afc1ca3c53371..7e37348aede18a1544ea2a8f5e9c85fcf67c2b18 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -29,7 +29,8 @@ namespace {
class TestContentLayer : public Layer {
public:
- TestContentLayer() : Layer(), override_opaque_contents_rect_(false) {
+ explicit TestContentLayer(const LayerSettings& settings)
+ : Layer(settings), override_opaque_contents_rect_(false) {
SetIsDrawable(true);
}
@@ -117,9 +118,11 @@ struct OcclusionTrackerTestMainThreadTypes {
typedef LayerIterator<Layer> TestLayerIterator;
typedef OcclusionTracker<Layer> OcclusionTrackerType;
- static LayerPtrType CreateLayer(HostType* host) { return Layer::Create(); }
+ static LayerPtrType CreateLayer(HostType* host) {
+ return Layer::Create(LayerSettings());
+ }
static ContentLayerPtrType CreateContentLayer(HostType* host) {
- return make_scoped_refptr(new ContentLayerType());
+ return make_scoped_refptr(new ContentLayerType(LayerSettings()));
}
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698