Lines Matching refs:queue
28 LayerUpdateQueue queue; in TEST() local
29 EXPECT_TRUE(queue.entries().empty()); in TEST()
44 LayerUpdateQueue queue; in TEST() local
45 queue.enqueueLayerWithDamage(a.get(), Rect(25, 25, 75, 75)); in TEST()
46 queue.enqueueLayerWithDamage(b.get(), Rect(100, 100, 300, 300)); in TEST()
47 queue.enqueueLayerWithDamage(c.get(), Rect(.5, .5, .5, .5)); in TEST()
49 EXPECT_EQ(3u, queue.entries().size()); in TEST()
51 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST()
52 EXPECT_EQ(Rect(25, 25, 75, 75), queue.entries()[0].damage); in TEST()
53 EXPECT_EQ(b.get(), queue.entries()[1].renderNode.get()); in TEST()
54 EXPECT_EQ(Rect(100, 100, 200, 200), queue.entries()[1].damage); // clipped to bounds in TEST()
55 EXPECT_EQ(c.get(), queue.entries()[2].renderNode.get()); in TEST()
56 EXPECT_EQ(Rect(0, 0, 1, 1), queue.entries()[2].damage); // rounded out in TEST()
62 LayerUpdateQueue queue; in TEST() local
63 queue.enqueueLayerWithDamage(a.get(), Rect(10, 10, 20, 20)); in TEST()
64 queue.enqueueLayerWithDamage(a.get(), Rect(30, 30, 40, 40)); in TEST()
66 EXPECT_EQ(1u, queue.entries().size()); in TEST()
68 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST()
69 EXPECT_EQ(Rect(10, 10, 40, 40), queue.entries()[0].damage); in TEST()
75 LayerUpdateQueue queue; in TEST() local
76 queue.enqueueLayerWithDamage(a.get(), Rect(100, 100)); in TEST()
78 EXPECT_FALSE(queue.entries().empty()); in TEST()
80 queue.clear(); in TEST()
82 EXPECT_TRUE(queue.entries().empty()); in TEST()