OLD | NEW |
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 Loading... |
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].layer_id != id) | 145 if (scrollInfo.scrolls[i].layerId != id) |
146 continue; | 146 continue; |
147 EXPECT_VECTOR_EQ(scrollDelta, scrollInfo.scrolls[i].scroll_delta); | 147 EXPECT_VECTOR_EQ(scrollDelta, scrollInfo.scrolls[i].scrollDelta); |
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].layer_id != id) | 159 if (scrollInfo.scrolls[i].layerId != 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 scrollLayer->SetScrollDelta(gfx::Vector2d()); | 609 scrollLayer->SetScrollDelta(gfx::Vector2d()); |
610 | 610 |
611 float pageScaleDelta = 2; | 611 float pageScaleDelta = 2; |
612 m_hostImpl->PinchGestureBegin(); | 612 m_hostImpl->PinchGestureBegin(); |
613 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); | 613 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); |
614 m_hostImpl->PinchGestureEnd(); | 614 m_hostImpl->PinchGestureEnd(); |
615 EXPECT_TRUE(m_didRequestRedraw); | 615 EXPECT_TRUE(m_didRequestRedraw); |
616 EXPECT_TRUE(m_didRequestCommit); | 616 EXPECT_TRUE(m_didRequestCommit); |
617 | 617 |
618 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 618 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
619 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta); | 619 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); |
620 | 620 |
621 EXPECT_EQ(gfx::Vector2d(75, 75), m_hostImpl->active_tree()->root_layer()
->max_scroll_offset()); | 621 EXPECT_EQ(gfx::Vector2d(75, 75), m_hostImpl->active_tree()->root_layer()
->max_scroll_offset()); |
622 } | 622 } |
623 | 623 |
624 // Scrolling after a pinch gesture should always be in local space. The scr
oll deltas do not | 624 // Scrolling after a pinch gesture should always be in local space. The scr
oll deltas do not |
625 // have the page scale factor applied. | 625 // have the page scale factor applied. |
626 { | 626 { |
627 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); | 627 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); |
628 m_hostImpl->active_tree()->SetPageScaleDelta(1); | 628 m_hostImpl->active_tree()->SetPageScaleDelta(1); |
629 scrollLayer->SetImplTransform(identityScaleTransform); | 629 scrollLayer->SetImplTransform(identityScaleTransform); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 scrollLayer->SetScrollDelta(gfx::Vector2d()); | 664 scrollLayer->SetScrollDelta(gfx::Vector2d()); |
665 | 665 |
666 float pageScaleDelta = 2; | 666 float pageScaleDelta = 2; |
667 m_hostImpl->PinchGestureBegin(); | 667 m_hostImpl->PinchGestureBegin(); |
668 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); | 668 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); |
669 m_hostImpl->PinchGestureEnd(); | 669 m_hostImpl->PinchGestureEnd(); |
670 EXPECT_TRUE(m_didRequestRedraw); | 670 EXPECT_TRUE(m_didRequestRedraw); |
671 EXPECT_TRUE(m_didRequestCommit); | 671 EXPECT_TRUE(m_didRequestCommit); |
672 | 672 |
673 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 673 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
674 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta); | 674 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); |
675 } | 675 } |
676 | 676 |
677 // Zoom-in clamping | 677 // Zoom-in clamping |
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 float pageScaleDelta = 10; | 682 float pageScaleDelta = 10; |
683 | 683 |
684 m_hostImpl->PinchGestureBegin(); | 684 m_hostImpl->PinchGestureBegin(); |
685 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); | 685 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(50, 50)); |
686 m_hostImpl->PinchGestureEnd(); | 686 m_hostImpl->PinchGestureEnd(); |
687 | 687 |
688 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 688 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
689 EXPECT_EQ(scrollInfo->page_scale_delta, maxPageScale); | 689 EXPECT_EQ(scrollInfo->pageScaleDelta, maxPageScale); |
690 } | 690 } |
691 | 691 |
692 // Zoom-out clamping | 692 // Zoom-out clamping |
693 { | 693 { |
694 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); | 694 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); |
695 scrollLayer->SetImplTransform(identityScaleTransform); | 695 scrollLayer->SetImplTransform(identityScaleTransform); |
696 scrollLayer->SetScrollDelta(gfx::Vector2d()); | 696 scrollLayer->SetScrollDelta(gfx::Vector2d()); |
697 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); | 697 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); |
698 | 698 |
699 float pageScaleDelta = 0.1f; | 699 float pageScaleDelta = 0.1f; |
700 m_hostImpl->PinchGestureBegin(); | 700 m_hostImpl->PinchGestureBegin(); |
701 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(0, 0)); | 701 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(0, 0)); |
702 m_hostImpl->PinchGestureEnd(); | 702 m_hostImpl->PinchGestureEnd(); |
703 | 703 |
704 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 704 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
705 EXPECT_EQ(scrollInfo->page_scale_delta, minPageScale); | 705 EXPECT_EQ(scrollInfo->pageScaleDelta, minPageScale); |
706 | 706 |
707 EXPECT_TRUE(scrollInfo->scrolls.empty()); | 707 EXPECT_TRUE(scrollInfo->scrolls.empty()); |
708 } | 708 } |
709 | 709 |
710 // Two-finger panning should not happen based on pinch events only | 710 // Two-finger panning should not happen based on pinch events only |
711 { | 711 { |
712 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); | 712 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); |
713 scrollLayer->SetImplTransform(identityScaleTransform); | 713 scrollLayer->SetImplTransform(identityScaleTransform); |
714 scrollLayer->SetScrollDelta(gfx::Vector2d()); | 714 scrollLayer->SetScrollDelta(gfx::Vector2d()); |
715 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); | 715 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); |
716 | 716 |
717 float pageScaleDelta = 1; | 717 float pageScaleDelta = 1; |
718 m_hostImpl->PinchGestureBegin(); | 718 m_hostImpl->PinchGestureBegin(); |
719 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); | 719 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); |
720 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); | 720 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); |
721 m_hostImpl->PinchGestureEnd(); | 721 m_hostImpl->PinchGestureEnd(); |
722 | 722 |
723 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 723 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
724 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta); | 724 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); |
725 EXPECT_TRUE(scrollInfo->scrolls.empty()); | 725 EXPECT_TRUE(scrollInfo->scrolls.empty()); |
726 } | 726 } |
727 | 727 |
728 // Two-finger panning should work with interleaved scroll events | 728 // Two-finger panning should work with interleaved scroll events |
729 { | 729 { |
730 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); | 730 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); |
731 scrollLayer->SetImplTransform(identityScaleTransform); | 731 scrollLayer->SetImplTransform(identityScaleTransform); |
732 scrollLayer->SetScrollDelta(gfx::Vector2d()); | 732 scrollLayer->SetScrollDelta(gfx::Vector2d()); |
733 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); | 733 scrollLayer->SetScrollOffset(gfx::Vector2d(20, 20)); |
734 | 734 |
735 float pageScaleDelta = 1; | 735 float pageScaleDelta = 1; |
736 m_hostImpl->ScrollBegin(gfx::Point(10, 10), InputHandlerClient::Wheel); | 736 m_hostImpl->ScrollBegin(gfx::Point(10, 10), InputHandlerClient::Wheel); |
737 m_hostImpl->PinchGestureBegin(); | 737 m_hostImpl->PinchGestureBegin(); |
738 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); | 738 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); |
739 m_hostImpl->ScrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10)); | 739 m_hostImpl->ScrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10)); |
740 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); | 740 m_hostImpl->PinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); |
741 m_hostImpl->PinchGestureEnd(); | 741 m_hostImpl->PinchGestureEnd(); |
742 m_hostImpl->ScrollEnd(); | 742 m_hostImpl->ScrollEnd(); |
743 | 743 |
744 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 744 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
745 EXPECT_EQ(scrollInfo->page_scale_delta, pageScaleDelta); | 745 EXPECT_EQ(scrollInfo->pageScaleDelta, pageScaleDelta); |
746 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-10, -10)); | 746 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-10, -10)); |
747 } | 747 } |
748 } | 748 } |
749 | 749 |
750 TEST_F(LayerTreeHostImplTest, pageScaleAnimation) | 750 TEST_F(LayerTreeHostImplTest, pageScaleAnimation) |
751 { | 751 { |
752 setupScrollAndContentsLayers(gfx::Size(100, 100)); | 752 setupScrollAndContentsLayers(gfx::Size(100, 100)); |
753 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); | 753 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); |
754 initializeRendererAndDrawFrame(); | 754 initializeRendererAndDrawFrame(); |
755 | 755 |
(...skipping 14 matching lines...) Expand all Loading... |
770 scrollLayer->SetImplTransform(identityScaleTransform); | 770 scrollLayer->SetImplTransform(identityScaleTransform); |
771 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); | 771 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); |
772 | 772 |
773 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), false, 2, start
Time, duration); | 773 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), false, 2, start
Time, duration); |
774 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); | 774 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); |
775 EXPECT_TRUE(m_didRequestRedraw); | 775 EXPECT_TRUE(m_didRequestRedraw); |
776 m_hostImpl->Animate(endTime, base::Time()); | 776 m_hostImpl->Animate(endTime, base::Time()); |
777 EXPECT_TRUE(m_didRequestCommit); | 777 EXPECT_TRUE(m_didRequestCommit); |
778 | 778 |
779 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 779 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
780 EXPECT_EQ(scrollInfo->page_scale_delta, 2); | 780 EXPECT_EQ(scrollInfo->pageScaleDelta, 2); |
781 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); | 781 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); |
782 } | 782 } |
783 | 783 |
784 // Anchor zoom-out | 784 // Anchor zoom-out |
785 { | 785 { |
786 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); | 786 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1, minPageScale,
maxPageScale); |
787 scrollLayer->SetImplTransform(identityScaleTransform); | 787 scrollLayer->SetImplTransform(identityScaleTransform); |
788 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); | 788 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); |
789 | 789 |
790 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(25, 25), true, minPage
Scale, startTime, duration); | 790 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(25, 25), true, minPage
Scale, startTime, duration); |
791 m_hostImpl->Animate(endTime, base::Time()); | 791 m_hostImpl->Animate(endTime, base::Time()); |
792 EXPECT_TRUE(m_didRequestRedraw); | 792 EXPECT_TRUE(m_didRequestRedraw); |
793 EXPECT_TRUE(m_didRequestCommit); | 793 EXPECT_TRUE(m_didRequestCommit); |
794 | 794 |
795 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 795 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
796 EXPECT_EQ(scrollInfo->page_scale_delta, minPageScale); | 796 EXPECT_EQ(scrollInfo->pageScaleDelta, minPageScale); |
797 // Pushed to (0,0) via clamping against contents layer size. | 797 // Pushed to (0,0) via clamping against contents layer size. |
798 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); | 798 expectContains(*scrollInfo, scrollLayer->id(), gfx::Vector2d(-50, -50)); |
799 } | 799 } |
800 } | 800 } |
801 | 801 |
802 TEST_F(LayerTreeHostImplTest, pageScaleAnimationNoOp) | 802 TEST_F(LayerTreeHostImplTest, pageScaleAnimationNoOp) |
803 { | 803 { |
804 setupScrollAndContentsLayers(gfx::Size(100, 100)); | 804 setupScrollAndContentsLayers(gfx::Size(100, 100)); |
805 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); | 805 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); |
806 initializeRendererAndDrawFrame(); | 806 initializeRendererAndDrawFrame(); |
(...skipping 15 matching lines...) Expand all Loading... |
822 scrollLayer->SetImplTransform(identityScaleTransform); | 822 scrollLayer->SetImplTransform(identityScaleTransform); |
823 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); | 823 scrollLayer->SetScrollOffset(gfx::Vector2d(50, 50)); |
824 | 824 |
825 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), true, 1, startT
ime, duration); | 825 m_hostImpl->StartPageScaleAnimation(gfx::Vector2d(0, 0), true, 1, startT
ime, duration); |
826 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); | 826 m_hostImpl->Animate(halfwayThroughAnimation, base::Time()); |
827 EXPECT_TRUE(m_didRequestRedraw); | 827 EXPECT_TRUE(m_didRequestRedraw); |
828 m_hostImpl->Animate(endTime, base::Time()); | 828 m_hostImpl->Animate(endTime, base::Time()); |
829 EXPECT_TRUE(m_didRequestCommit); | 829 EXPECT_TRUE(m_didRequestCommit); |
830 | 830 |
831 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); | 831 scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->ProcessScrollDelt
as(); |
832 EXPECT_EQ(scrollInfo->page_scale_delta, 1); | 832 EXPECT_EQ(scrollInfo->pageScaleDelta, 1); |
833 expectNone(*scrollInfo, scrollLayer->id()); | 833 expectNone(*scrollInfo, scrollLayer->id()); |
834 } | 834 } |
835 } | 835 } |
836 | 836 |
837 TEST_F(LayerTreeHostImplTest, compositorFrameMetadata) | 837 TEST_F(LayerTreeHostImplTest, compositorFrameMetadata) |
838 { | 838 { |
839 setupScrollAndContentsLayers(gfx::Size(100, 100)); | 839 setupScrollAndContentsLayers(gfx::Size(100, 100)); |
840 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); | 840 m_hostImpl->SetViewportSize(gfx::Size(50, 50), gfx::Size(50, 50)); |
841 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1.0f, 0.5f, 4.0f); | 841 m_hostImpl->active_tree()->SetPageScaleFactorAndLimits(1.0f, 0.5f, 4.0f); |
842 initializeRendererAndDrawFrame(); | 842 initializeRendererAndDrawFrame(); |
(...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4377 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); | 4377 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); |
4378 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); | 4378 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); |
4379 | 4379 |
4380 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now()); | 4380 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now()); |
4381 m_hostImpl->DidDrawAllLayers(frame); | 4381 m_hostImpl->DidDrawAllLayers(frame); |
4382 } | 4382 } |
4383 } | 4383 } |
4384 | 4384 |
4385 } // namespace | 4385 } // namespace |
4386 } // namespace cc | 4386 } // namespace cc |
OLD | NEW |