Lines Matching refs:Damage
159 gfx::RectF damage;
161 // Both observers get a full frame of damage on the first request.
162 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
163 EXPECT_EQ(gfx::RectF(5.f, 5.f).ToString(), damage.ToString());
164 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
165 EXPECT_EQ(gfx::RectF(5.f, 5.f).ToString(), damage.ToString());
167 // And both get no damage on the 2nd request. This adds a second ref to the
169 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
170 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());
171 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
172 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());
217 gfx::RectF damage;
220 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
221 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
259 gfx::RectF damage;
262 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
263 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
286 TEST_F(DelegatedFrameProviderTest, Damage) {
303 gfx::RectF damage;
305 // Both observers get a full frame of damage on the first request.
306 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
307 EXPECT_EQ(gfx::RectF(5.f, 5.f).ToString(), damage.ToString());
308 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
309 EXPECT_EQ(gfx::RectF(5.f, 5.f).ToString(), damage.ToString());
311 // And both get no damage on the 2nd request.
312 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
313 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());
314 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
315 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());
322 // Both observers get the damage for the new frame.
323 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
324 EXPECT_EQ(gfx::RectF(2.f, 2.f).ToString(), damage.ToString());
325 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
326 EXPECT_EQ(gfx::RectF(2.f, 2.f).ToString(), damage.ToString());
328 // And both get no damage on the 2nd request.
329 frame_provider_->GetFrameDataAndRefResources(observer1, &damage);
330 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());
331 frame_provider_->GetFrameDataAndRefResources(observer2, &damage);
332 EXPECT_EQ(gfx::RectF().ToString(), damage.ToString());