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

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

Issue 924973003: CC: Force push properties for all layers when tracing is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 case 18: 573 case 18:
574 // Set another new frame, both layers should be damaged in the same 574 // Set another new frame, both layers should be damaged in the same
575 // ways. 575 // ways.
576 SetFrameData( 576 SetFrameData(
577 CreateFrameData(gfx::Rect(0, 0, 10, 10), gfx::Rect(3, 3, 1, 1))); 577 CreateFrameData(gfx::Rect(0, 0, 10, 10), gfx::Rect(3, 3, 1, 1)));
578 break; 578 break;
579 } 579 }
580 } 580 }
581 581
582 DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl, 582 DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
583 LayerTreeHostImpl::FrameData* frame, 583 FrameData* frame,
584 DrawResult draw_result) override { 584 DrawResult draw_result) override {
585 EXPECT_EQ(DRAW_SUCCESS, draw_result); 585 EXPECT_EQ(DRAW_SUCCESS, draw_result);
586 586
587 gfx::Rect damage_rect; 587 gfx::Rect damage_rect;
588 if (!frame->has_no_damage) { 588 if (!frame->has_no_damage) {
589 damage_rect = frame->render_passes.back()->damage_rect; 589 damage_rect = frame->render_passes.back()->damage_rect;
590 } else { 590 } else {
591 // If there is no damage, then we have no render passes to send. 591 // If there is no damage, then we have no render passes to send.
592 EXPECT_TRUE(frame->render_passes.empty()); 592 EXPECT_TRUE(frame->render_passes.empty());
593 } 593 }
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 } 2160 }
2161 2161
2162 scoped_refptr<DelegatedRendererLayer> delegated_thief_; 2162 scoped_refptr<DelegatedRendererLayer> delegated_thief_;
2163 }; 2163 };
2164 2164
2165 SINGLE_AND_MULTI_THREAD_TEST_F( 2165 SINGLE_AND_MULTI_THREAD_TEST_F(
2166 LayerTreeHostDelegatedTestRemoveAndChangeResources); 2166 LayerTreeHostDelegatedTestRemoveAndChangeResources);
2167 2167
2168 } // namespace 2168 } // namespace
2169 } // namespace cc 2169 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698