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

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

Issue 12760011: cc: Chromify LayerTreeHostCommon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ASSERT_EQ(layer->scroll_delta(), gfx::Vector2d()); 135 ASSERT_EQ(layer->scroll_delta(), gfx::Vector2d());
136 for (size_t i = 0; i < layer->children().size(); ++i) 136 for (size_t i = 0; i < layer->children().size(); ++i)
137 expectClearedScrollDeltasRecursive(layer->children()[i]); 137 expectClearedScrollDeltasRecursive(layer->children()[i]);
138 } 138 }
139 139
140 static void expectContains(const ScrollAndScaleSet& scrollInfo, int id, cons t gfx::Vector2d& scrollDelta) 140 static void expectContains(const ScrollAndScaleSet& scrollInfo, int id, cons t gfx::Vector2d& scrollDelta)
141 { 141 {
142 int timesEncountered = 0; 142 int timesEncountered = 0;
143 143
144 for (size_t i = 0; i < scrollInfo.scrolls.size(); ++i) { 144 for (size_t i = 0; i < scrollInfo.scrolls.size(); ++i) {
145 if (scrollInfo.scrolls[i].layerId != id) 145 if (scrollInfo.scrolls[i].layer_id != id)
146 continue; 146 continue;
147 EXPECT_VECTOR_EQ(scrollDelta, scrollInfo.scrolls[i].scrollDelta); 147 EXPECT_VECTOR_EQ(scrollDelta, scrollInfo.scrolls[i].scroll_delta);
148 timesEncountered++; 148 timesEncountered++;
149 } 149 }
150 150
151 ASSERT_EQ(timesEncountered, 1); 151 ASSERT_EQ(timesEncountered, 1);
152 } 152 }
153 153
154 static void expectNone(const ScrollAndScaleSet& scrollInfo, int id) 154 static void expectNone(const ScrollAndScaleSet& scrollInfo, int id)
155 { 155 {
156 int timesEncountered = 0; 156 int timesEncountered = 0;
157 157
158 for (size_t i = 0; i < scrollInfo.scrolls.size(); ++i) { 158 for (size_t i = 0; i < scrollInfo.scrolls.size(); ++i) {
159 if (scrollInfo.scrolls[i].layerId != id) 159 if (scrollInfo.scrolls[i].layer_id != id)
160 continue; 160 continue;
161 timesEncountered++; 161 timesEncountered++;
162 } 162 }
163 163
164 ASSERT_EQ(0, timesEncountered); 164 ASSERT_EQ(0, timesEncountered);
165 } 165 }
166 166
167 void setupScrollAndContentsLayers(const gfx::Size& contentSize) 167 void setupScrollAndContentsLayers(const gfx::Size& contentSize)
168 { 168 {
169 scoped_ptr<LayerImpl> root = LayerImpl::Create(m_hostImpl->active_tree() , 1); 169 scoped_ptr<LayerImpl> root = LayerImpl::Create(m_hostImpl->active_tree() , 1);
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 scrollLayer->SetScrollDelta(gfx::Vector2d()); 576 scrollLayer->SetScrollDelta(gfx::Vector2d());
577 577
578 float pageScaleDelta = 2; 578 float pageScaleDelta = 2;
579 m_hostImpl->PinchGestureBegin(); 579 m_hostImpl->PinchGestureBegin();
580 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); 580 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50));
581 m_hostImpl->PinchGestureEnd(); 581 m_hostImpl->PinchGestureEnd();
582 EXPECT_TRUE(m_didRequestRedraw); 582 EXPECT_TRUE(m_didRequestRedraw);
583 EXPECT_TRUE(m_didRequestCommit); 583 EXPECT_TRUE(m_didRequestCommit);
584 584
585 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 585 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
586 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); 586 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta);
587 587
588 EXPECT_EQ(gfx::Vector2d(75, 75), m_hostImpl->active_tree()->root_layer() ->max_scroll_offset()); 588 EXPECT_EQ(gfx::Vector2d(75, 75), m_hostImpl->active_tree()->root_layer() ->max_scroll_offset());
589 } 589 }
590 590
591 // Scrolling after a pinch gesture should always be in local space. The scr oll deltas do not 591 // Scrolling after a pinch gesture should always be in local space. The scr oll deltas do not
592 // have the page scale factor applied. 592 // have the page scale factor applied.
593 { 593 {
594 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 594 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
595 m_hostImpl->active_tree()->SetPageScaleDelta(1); 595 m_hostImpl->active_tree()->SetPageScaleDelta(1);
596 scrollLayer->SetImplTransform(identityScaleTransform); 596 scrollLayer->SetImplTransform(identityScaleTransform);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 scrollLayer->SetScrollDelta(gfx::Vector2d()); 631 scrollLayer->SetScrollDelta(gfx::Vector2d());
632 632
633 float pageScaleDelta = 2; 633 float pageScaleDelta = 2;
634 m_hostImpl->PinchGestureBegin(); 634 m_hostImpl->PinchGestureBegin();
635 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); 635 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50));
636 m_hostImpl->PinchGestureEnd(); 636 m_hostImpl->PinchGestureEnd();
637 EXPECT_TRUE(m_didRequestRedraw); 637 EXPECT_TRUE(m_didRequestRedraw);
638 EXPECT_TRUE(m_didRequestCommit); 638 EXPECT_TRUE(m_didRequestCommit);
639 639
640 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 640 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
641 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); 641 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta);
642 } 642 }
643 643
644 // Zoom-in clamping 644 // Zoom-in clamping
645 { 645 {
646 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 646 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
647 scrollLayer->SetImplTransform(identityScaleTransform); 647 scrollLayer->SetImplTransform(identityScaleTransform);
648 scrollLayer->SetScrollDelta(gfx::Vector2d()); 648 scrollLayer->SetScrollDelta(gfx::Vector2d());
649 float pageScaleDelta = 10; 649 float pageScaleDelta = 10;
650 650
651 m_hostImpl->PinchGestureBegin(); 651 m_hostImpl->PinchGestureBegin();
652 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); 652 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50));
653 m_hostImpl->PinchGestureEnd(); 653 m_hostImpl->PinchGestureEnd();
654 654
655 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 655 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
656 EXPECT_EQ(scrollInfo->pageScaleDelta, maxPageScale); 656 EXPECT_EQ(scrollInfo->page_scale_delta, maxPageScale);
657 } 657 }
658 658
659 // Zoom-out clamping 659 // Zoom-out clamping
660 { 660 {
661 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 661 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
662 scrollLayer->SetImplTransform(identityScaleTransform); 662 scrollLayer->SetImplTransform(identityScaleTransform);
663 scrollLayer->SetScrollDelta(gfx::Vector2d()); 663 scrollLayer->SetScrollDelta(gfx::Vector2d());
664 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); 664 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50));
665 665
666 float pageScaleDelta = 0.1f; 666 float pageScaleDelta = 0.1f;
667 m_hostImpl->PinchGestureBegin(); 667 m_hostImpl->PinchGestureBegin();
668 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(0, 0)); 668 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(0, 0));
669 m_hostImpl->PinchGestureEnd(); 669 m_hostImpl->PinchGestureEnd();
670 670
671 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 671 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
672 EXPECT_EQ(scrollInfo->pageScaleDelta, minPageScale); 672 EXPECT_EQ(scrollInfo->page_scale_delta, minPageScale);
673 673
674 EXPECT_TRUE(scrollInfo->scrolls.empty()); 674 EXPECT_TRUE(scrollInfo->scrolls.empty());
675 } 675 }
676 676
677 // Two-finger panning should not happen based on pinch events only 677 // Two-finger panning should not happen based on pinch events only
678 { 678 {
679 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 679 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
680 scrollLayer->SetImplTransform(identityScaleTransform); 680 scrollLayer->SetImplTransform(identityScaleTransform);
681 scrollLayer->SetScrollDelta(gfx::Vector2d()); 681 scrollLayer->SetScrollDelta(gfx::Vector2d());
682 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); 682 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20));
683 683
684 float pageScaleDelta = 1; 684 float pageScaleDelta = 1;
685 m_hostImpl->PinchGestureBegin(); 685 m_hostImpl->PinchGestureBegin();
686 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); 686 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10));
687 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); 687 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20));
688 m_hostImpl->PinchGestureEnd(); 688 m_hostImpl->PinchGestureEnd();
689 689
690 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 690 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
691 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); 691 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta);
692 EXPECT_TRUE(scrollInfo->scrolls.empty()); 692 EXPECT_TRUE(scrollInfo->scrolls.empty());
693 } 693 }
694 694
695 // Two-finger panning should work with interleaved scroll events 695 // Two-finger panning should work with interleaved scroll events
696 { 696 {
697 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 697 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
698 scrollLayer->SetImplTransform(identityScaleTransform); 698 scrollLayer->SetImplTransform(identityScaleTransform);
699 scrollLayer->SetScrollDelta(gfx::Vector2d()); 699 scrollLayer->SetScrollDelta(gfx::Vector2d());
700 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); 700 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20));
701 701
702 float pageScaleDelta = 1; 702 float pageScaleDelta = 1;
703 m_hostImpl->ScrollBegin(gfx::Point(10, 10), InputHandlerClient::Wheel); 703 m_hostImpl->ScrollBegin(gfx::Point(10, 10), InputHandlerClient::Wheel);
704 m_hostImpl->PinchGestureBegin(); 704 m_hostImpl->PinchGestureBegin();
705 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); 705 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10));
706 m_hostImpl->ScrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10)); 706 m_hostImpl->ScrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10));
707 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); 707 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20));
708 m_hostImpl->PinchGestureEnd(); 708 m_hostImpl->PinchGestureEnd();
709 m_hostImpl->ScrollEnd(); 709 m_hostImpl->ScrollEnd();
710 710
711 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 711 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
712 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); 712 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta);
713 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-10, -10)); 713 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-10, -10));
714 } 714 }
715 } 715 }
716 716
717 TEST_F(LayerTreeHostImplTest, pageScaleAnimation) 717 TEST_F(LayerTreeHostImplTest, pageScaleAnimation)
718 { 718 {
719 setupScrollAndContentsLayers(gfx::Size(100, 100)); 719 setupScrollAndContentsLayers(gfx::Size(100, 100));
720 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); 720 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50));
721 initializeRendererAndDrawFrame(); 721 initializeRendererAndDrawFrame();
722 722
(...skipping 14 matching lines...) Expand all
737 scrollLayer->SetImplTransform(identityScaleTransform); 737 scrollLayer->SetImplTransform(identityScaleTransform);
738 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); 738 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50));
739 739
740 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), false, 2, start Time, duration); 740 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), false, 2, start Time, duration);
741 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); 741 m_hostImpl->Animate(halfwayThroughAnimation, base::Time());
742 EXPECT_TRUE(m_didRequestRedraw); 742 EXPECT_TRUE(m_didRequestRedraw);
743 m_hostImpl->Animate(endTime, base::Time()); 743 m_hostImpl->Animate(endTime, base::Time());
744 EXPECT_TRUE(m_didRequestCommit); 744 EXPECT_TRUE(m_didRequestCommit);
745 745
746 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 746 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
747 EXPECT_EQ(scrollInfo->pageScaleDelta, 2); 747 EXPECT_EQ(scrollInfo->page_scale_delta, 2);
748 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); 748 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50));
749 } 749 }
750 750
751 // Anchor zoom-out 751 // Anchor zoom-out
752 { 752 {
753 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale); 753 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale, maxPageScale);
754 scrollLayer->SetImplTransform(identityScaleTransform); 754 scrollLayer->SetImplTransform(identityScaleTransform);
755 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); 755 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50));
756 756
757 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(25, 25), true, minPage Scale, startTime, duration); 757 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(25, 25), true, minPage Scale, startTime, duration);
758 m_hostImpl->Animate(endTime, base::Time()); 758 m_hostImpl->Animate(endTime, base::Time());
759 EXPECT_TRUE(m_didRequestRedraw); 759 EXPECT_TRUE(m_didRequestRedraw);
760 EXPECT_TRUE(m_didRequestCommit); 760 EXPECT_TRUE(m_didRequestCommit);
761 761
762 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 762 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
763 EXPECT_EQ(scrollInfo->pageScaleDelta, minPageScale); 763 EXPECT_EQ(scrollInfo->page_scale_delta, minPageScale);
764 // Pushed to (0,0) via clamping against contents layer size. 764 // Pushed to (0,0) via clamping against contents layer size.
765 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); 765 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50));
766 } 766 }
767 } 767 }
768 768
769 TEST_F(LayerTreeHostImplTest, pageScaleAnimationNoOp) 769 TEST_F(LayerTreeHostImplTest, pageScaleAnimationNoOp)
770 { 770 {
771 setupScrollAndContentsLayers(gfx::Size(100, 100)); 771 setupScrollAndContentsLayers(gfx::Size(100, 100));
772 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); 772 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50));
773 initializeRendererAndDrawFrame(); 773 initializeRendererAndDrawFrame();
(...skipping 15 matching lines...) Expand all
789 scrollLayer->SetImplTransform(identityScaleTransform); 789 scrollLayer->SetImplTransform(identityScaleTransform);
790 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); 790 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50));
791 791
792 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), true, 1, startT ime, duration); 792 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), true, 1, startT ime, duration);
793 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); 793 m_hostImpl->Animate(halfwayThroughAnimation, base::Time());
794 EXPECT_TRUE(m_didRequestRedraw); 794 EXPECT_TRUE(m_didRequestRedraw);
795 m_hostImpl->Animate(endTime, base::Time()); 795 m_hostImpl->Animate(endTime, base::Time());
796 EXPECT_TRUE(m_didRequestCommit); 796 EXPECT_TRUE(m_didRequestCommit);
797 797
798 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as(); 798 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt as();
799 EXPECT_EQ(scrollInfo->pageScaleDelta, 1); 799 EXPECT_EQ(scrollInfo->page_scale_delta, 1);
800 expectNone(*scrollInfo, scrollLayer->id()); 800 expectNone(*scrollInfo, scrollLayer->id());
801 } 801 }
802 } 802 }
803 803
804 TEST_F(LayerTreeHostImplTest, compositorFrameMetadata) 804 TEST_F(LayerTreeHostImplTest, compositorFrameMetadata)
805 { 805 {
806 setupScrollAndContentsLayers(gfx::Size(100, 100)); 806 setupScrollAndContentsLayers(gfx::Size(100, 100));
807 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); 807 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50));
808 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1.0f, 0.5f, 4.0f); 808 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1.0f, 0.5f, 4.0f);
809 initializeRendererAndDrawFrame(); 809 initializeRendererAndDrawFrame();
(...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after
4344 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS tring()); 4344 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS tring());
4345 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas k_uv_rect.ToString()); 4345 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas k_uv_rect.ToString());
4346 4346
4347 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now()); 4347 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now());
4348 m_hostImpl->DidDrawAllLayers(frame); 4348 m_hostImpl->DidDrawAllLayers(frame);
4349 } 4349 }
4350 } 4350 }
4351 4351
4352 } // namespace 4352 } // namespace
4353 } // namespace cc 4353 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698