@@ -34,7 +34,7 @@ TEST_F(ContainerLayerTest, PaintingEmptyLayerDies) {
3434
3535 layer->Preroll (preroll_context (), SkMatrix ());
3636 EXPECT_EQ (layer->paint_bounds (), SkRect::MakeEmpty ());
37- EXPECT_EQ (layer->child_paint_bounds (), SkRect::MakeEmpty ());
37+ EXPECT_EQ (*( layer->child_paint_bounds () ), SkRect::MakeEmpty ());
3838 EXPECT_FALSE (layer->needs_painting (paint_context ()));
3939
4040 EXPECT_DEATH_IF_SUPPORTED (layer->Paint (paint_context ()),
@@ -49,7 +49,7 @@ TEST_F(ContainerLayerTest, PaintBeforePrerollDies) {
4949 layer->Add (mock_layer);
5050
5151 EXPECT_EQ (layer->paint_bounds (), SkRect::MakeEmpty ());
52- EXPECT_EQ (layer->child_paint_bounds (), SkRect::MakeEmpty ());
52+ EXPECT_EQ (*( layer->child_paint_bounds () ), SkRect::MakeEmpty ());
5353 EXPECT_DEATH_IF_SUPPORTED (layer->Paint (paint_context ()),
5454 " needs_painting\\ (context\\ )" );
5555}
@@ -69,7 +69,7 @@ TEST_F(ContainerLayerTest, Simple) {
6969 EXPECT_FALSE (preroll_context ()->has_platform_view );
7070 EXPECT_EQ (mock_layer->paint_bounds (), child_path.getBounds ());
7171 EXPECT_EQ (layer->paint_bounds (), child_path.getBounds ());
72- EXPECT_EQ (layer->child_paint_bounds (), layer->paint_bounds ());
72+ EXPECT_EQ (*( layer->child_paint_bounds () ), layer->paint_bounds ());
7373 EXPECT_TRUE (mock_layer->needs_painting (paint_context ()));
7474 EXPECT_TRUE (layer->needs_painting (paint_context ()));
7575 EXPECT_EQ (mock_layer->parent_matrix (), initial_transform);
@@ -104,7 +104,7 @@ TEST_F(ContainerLayerTest, Multiple) {
104104 EXPECT_EQ (mock_layer1->paint_bounds (), child_path1.getBounds ());
105105 EXPECT_EQ (mock_layer2->paint_bounds (), child_path2.getBounds ());
106106 EXPECT_EQ (layer->paint_bounds (), expected_total_bounds);
107- EXPECT_EQ (layer->child_paint_bounds (), layer->paint_bounds ());
107+ EXPECT_EQ (*( layer->child_paint_bounds () ), layer->paint_bounds ());
108108 EXPECT_TRUE (mock_layer1->needs_painting (paint_context ()));
109109 EXPECT_TRUE (mock_layer2->needs_painting (paint_context ()));
110110 EXPECT_TRUE (layer->needs_painting (paint_context ()));
@@ -141,7 +141,7 @@ TEST_F(ContainerLayerTest, MultipleWithEmpty) {
141141 EXPECT_EQ (mock_layer1->paint_bounds (), child_path1.getBounds ());
142142 EXPECT_EQ (mock_layer2->paint_bounds (), SkPath ().getBounds ());
143143 EXPECT_EQ (layer->paint_bounds (), child_path1.getBounds ());
144- EXPECT_EQ (layer->child_paint_bounds (), layer->paint_bounds ());
144+ EXPECT_EQ (*( layer->child_paint_bounds () ), layer->paint_bounds ());
145145 EXPECT_TRUE (mock_layer1->needs_painting (paint_context ()));
146146 EXPECT_FALSE (mock_layer2->needs_painting (paint_context ()));
147147 EXPECT_TRUE (layer->needs_painting (paint_context ()));
@@ -179,7 +179,7 @@ TEST_F(ContainerLayerTest, NeedsSystemComposite) {
179179 EXPECT_EQ (mock_layer1->paint_bounds (), child_path1.getBounds ());
180180 EXPECT_EQ (mock_layer2->paint_bounds (), child_path2.getBounds ());
181181 EXPECT_EQ (layer->paint_bounds (), expected_total_bounds);
182- EXPECT_EQ (layer->child_paint_bounds (), layer->paint_bounds ());
182+ EXPECT_EQ (*( layer->child_paint_bounds () ), layer->paint_bounds ());
183183 EXPECT_TRUE (mock_layer1->needs_painting (paint_context ()));
184184 EXPECT_TRUE (mock_layer2->needs_painting (paint_context ()));
185185 EXPECT_TRUE (layer->needs_painting (paint_context ()));
@@ -206,11 +206,11 @@ TEST_F(ContainerLayerTest, RasterCacheTest) {
206206 const SkPaint child_paint2 (SkColors::kGreen );
207207 const SkPaint paint;
208208 auto cacheable_container_layer1 =
209- std::make_shared<MockCacheableContainerLayer> ();
209+ MockCacheableContainerLayer::CacheLayerOrChildren ();
210210 auto cacheable_container_layer2 =
211- std::make_shared<MockCacheableContainerLayer2> ();
211+ MockCacheableContainerLayer::CacheLayerOnly ();
212212 auto cacheable_container_layer11 =
213- std::make_shared<MockCacheableContainerLayer> ();
213+ MockCacheableContainerLayer::CacheLayerOrChildren ();
214214
215215 auto cacheable_layer111 =
216216 std::make_shared<MockCacheableLayer>(child_path3, paint);
0 commit comments