Index: cc/trees/layer_tree_host_unittest.cc |
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc |
index d2f217cf0c6b29a951025f22b48f4349728bdf94..28c7c79c08897fc7cc4b6eba0fd35addffb7e5af 100644 |
--- a/cc/trees/layer_tree_host_unittest.cc |
+++ b/cc/trees/layer_tree_host_unittest.cc |
@@ -2210,7 +2210,11 @@ class LayerTreeHostTestLCDNotification : public LayerTreeHostTest { |
}; |
virtual void SetupTree() OVERRIDE { |
- scoped_refptr<ContentLayer> root_layer = ContentLayer::Create(&client_); |
+ scoped_refptr<Layer> root_layer; |
+ if (layer_tree_host()->settings().impl_side_painting) |
+ root_layer = PictureLayer::Create(&client_); |
+ else |
+ root_layer = ContentLayer::Create(&client_); |
root_layer->SetIsDrawable(true); |
root_layer->SetBounds(gfx::Size(1, 1)); |
@@ -2231,7 +2235,7 @@ class LayerTreeHostTestLCDNotification : public LayerTreeHostTest { |
virtual void DidCommit() OVERRIDE { |
switch (layer_tree_host()->source_frame_number()) { |
case 1: |
- // The first update consists one LCD notification and one paint. |
+ // The first update consists of one LCD notification and one paint. |
EXPECT_EQ(1, client_.lcd_notification_count()); |
EXPECT_EQ(1, client_.paint_count()); |
// LCD text must have been enabled on the layer. |
@@ -2250,7 +2254,7 @@ class LayerTreeHostTestLCDNotification : public LayerTreeHostTest { |
// No need to request a commit - setting opacity will do it. |
break; |
default: |
- // Verify that there is not extra commit due to layer invalidation. |
+ // Verify that there is no extra commit due to layer invalidation. |
EXPECT_EQ(3, layer_tree_host()->source_frame_number()); |
// LCD notification count should have incremented due to |
// change in layer opacity. |
@@ -2268,7 +2272,7 @@ class LayerTreeHostTestLCDNotification : public LayerTreeHostTest { |
NotificationClient client_; |
}; |
-SINGLE_THREAD_TEST_F(LayerTreeHostTestLCDNotification); |
+SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestLCDNotification); |
// Verify that the BeginFrame notification is used to initiate rendering. |
class LayerTreeHostTestBeginFrameNotification : public LayerTreeHostTest { |