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

Unified Diff: cc/trees/layer_tree_host_unittest_video.cc

Issue 2632463005: cc: Ensure that large damage doesn't register as "frame has no damage" (Closed)
Patch Set: update Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_video.cc
diff --git a/cc/trees/layer_tree_host_unittest_video.cc b/cc/trees/layer_tree_host_unittest_video.cc
index 2e2890ff247d472a6cc15ebd05f3b20af39ab6f7..dcfbe9ad876392cb875bb8c1807e842268d0ecf4 100644
--- a/cc/trees/layer_tree_host_unittest_video.cc
+++ b/cc/trees/layer_tree_host_unittest_video.cc
@@ -49,8 +49,9 @@ class LayerTreeHostVideoTestSetNeedsDisplay
DrawResult draw_result) override {
LayerImpl* root_layer = host_impl->active_tree()->root_layer_for_testing();
RenderSurfaceImpl* root_surface = root_layer->render_surface();
- gfx::Rect damage_rect =
- root_surface->damage_tracker()->current_damage_rect();
+ gfx::Rect damage_rect;
+ EXPECT_TRUE(
+ root_surface->damage_tracker()->GetDamageRectIfValid(&damage_rect));
switch (num_draws_) {
case 0:
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698