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

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2035863003: cc: Add mask and replica layer ids to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 layer_tree_host()->root_layer()->RemoveAllChildren(); 1187 layer_tree_host()->root_layer()->RemoveAllChildren();
1188 layer_tree_host()->root_layer()->SetMaskLayer(mask_layer.get()); 1188 layer_tree_host()->root_layer()->SetMaskLayer(mask_layer.get());
1189 break; 1189 break;
1190 } 1190 }
1191 } 1191 }
1192 1192
1193 void CommitCompleteOnThread(LayerTreeHostImpl* impl) override { 1193 void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
1194 switch (index_) { 1194 switch (index_) {
1195 case 0: 1195 case 0:
1196 index_++; 1196 index_++;
1197 EXPECT_FALSE(impl->sync_tree()->root_layer()->mask_layer()); 1197 EXPECT_FALSE(
1198 impl->sync_tree()->root_layer()->render_surface()->MaskLayer());
1198 break; 1199 break;
1199 case 1: 1200 case 1:
1200 EXPECT_TRUE(impl->sync_tree()->root_layer()->mask_layer()); 1201 EXPECT_TRUE(
1202 impl->sync_tree()->root_layer()->render_surface()->MaskLayer());
1201 EndTest(); 1203 EndTest();
1202 break; 1204 break;
1203 } 1205 }
1204 } 1206 }
1205 1207
1206 void AfterTest() override {} 1208 void AfterTest() override {}
1207 1209
1208 scoped_refptr<Layer> mask_layer; 1210 scoped_refptr<Layer> mask_layer;
1209 int index_; 1211 int index_;
1210 }; 1212 };
(...skipping 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after
6666 EndTest(); 6668 EndTest();
6667 } 6669 }
6668 6670
6669 void AfterTest() override {} 6671 void AfterTest() override {}
6670 }; 6672 };
6671 6673
6672 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); 6674 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor);
6673 6675
6674 } // namespace 6676 } // namespace
6675 } // namespace cc 6677 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_occlusion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698