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

Side by Side Diff: cc/CCLayerTreeHostImplTest.cpp

Issue 10920059: Rolls cc and webkit_compositor up to 127340 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/CCLayerTreeHostCommonTest.cpp ('k') | cc/CCLayerTreeHostTest.cpp » ('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 "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerTreeHostImpl.h" 7 #include "CCLayerTreeHostImpl.h"
8 8
9 #include "CCAnimationTestCommon.h" 9 #include "CCAnimationTestCommon.h"
10 #include "CCGeometryTestUtils.h"
10 #include "CCHeadsUpDisplayLayerImpl.h" 11 #include "CCHeadsUpDisplayLayerImpl.h"
11 #include "CCIOSurfaceLayerImpl.h" 12 #include "CCIOSurfaceLayerImpl.h"
12 #include "CCLayerImpl.h" 13 #include "CCLayerImpl.h"
13 #include "CCLayerTestCommon.h" 14 #include "CCLayerTestCommon.h"
14 #include "CCLayerTilingData.h" 15 #include "CCLayerTilingData.h"
15 #include "CCLayerTreeTestCommon.h"
16 #include "CCQuadSink.h" 16 #include "CCQuadSink.h"
17 #include "CCRenderPassDrawQuad.h" 17 #include "CCRenderPassDrawQuad.h"
18 #include "CCRendererGL.h" 18 #include "CCRendererGL.h"
19 #include "CCScrollbarGeometryFixedThumb.h" 19 #include "CCScrollbarGeometryFixedThumb.h"
20 #include "CCScrollbarLayerImpl.h" 20 #include "CCScrollbarLayerImpl.h"
21 #include "CCSettings.h" 21 #include "CCSettings.h"
22 #include "CCSingleThreadProxy.h" 22 #include "CCSingleThreadProxy.h"
23 #include "CCSolidColorDrawQuad.h" 23 #include "CCSolidColorDrawQuad.h"
24 #include "CCTestCommon.h" 24 #include "CCTestCommon.h"
25 #include "CCTextureLayerImpl.h" 25 #include "CCTextureLayerImpl.h"
(...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 ASSERT_EQ(1U, frame.renderPasses[1]->quadList().size()); 2793 ASSERT_EQ(1U, frame.renderPasses[1]->quadList().size());
2794 2794
2795 // Verify that the child layers are being clipped. 2795 // Verify that the child layers are being clipped.
2796 IntRect quadVisibleRect = frame.renderPasses[0]->quadList()[0]->quadVisi bleRect(); 2796 IntRect quadVisibleRect = frame.renderPasses[0]->quadList()[0]->quadVisi bleRect();
2797 EXPECT_LT(quadVisibleRect.width(), 100); 2797 EXPECT_LT(quadVisibleRect.width(), 100);
2798 2798
2799 quadVisibleRect = frame.renderPasses[0]->quadList()[1]->quadVisibleRect( ); 2799 quadVisibleRect = frame.renderPasses[0]->quadList()[1]->quadVisibleRect( );
2800 EXPECT_LT(quadVisibleRect.width(), 100); 2800 EXPECT_LT(quadVisibleRect.width(), 100);
2801 2801
2802 // Verify that the render surface texture is *not* clipped. 2802 // Verify that the render surface texture is *not* clipped.
2803 EXPECT_INT_RECT_EQ(IntRect(0, 0, 100, 100), frame.renderPasses[0]->outpu tRect()); 2803 EXPECT_RECT_EQ(IntRect(0, 0, 100, 100), frame.renderPasses[0]->outputRec t());
2804 2804
2805 EXPECT_EQ(CCDrawQuad::RenderPass, frame.renderPasses[1]->quadList()[0]-> material()); 2805 EXPECT_EQ(CCDrawQuad::RenderPass, frame.renderPasses[1]->quadList()[0]-> material());
2806 CCRenderPassDrawQuad* quad = static_cast<CCRenderPassDrawQuad*>(frame.re nderPasses[1]->quadList()[0].get()); 2806 CCRenderPassDrawQuad* quad = static_cast<CCRenderPassDrawQuad*>(frame.re nderPasses[1]->quadList()[0].get());
2807 EXPECT_FALSE(quad->contentsChangedSinceLastFrame().isEmpty()); 2807 EXPECT_FALSE(quad->contentsChangedSinceLastFrame().isEmpty());
2808 2808
2809 myHostImpl->drawLayers(frame); 2809 myHostImpl->drawLayers(frame);
2810 myHostImpl->didDrawAllLayers(frame); 2810 myHostImpl->didDrawAllLayers(frame);
2811 } 2811 }
2812 2812
2813 transform = surfaceLayerPtr->transform(); 2813 transform = surfaceLayerPtr->transform();
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
4127 while (removeRenderPassesCases[testCaseIndex].name) { 4127 while (removeRenderPassesCases[testCaseIndex].name) {
4128 RenderPassRemovalTestData testData; 4128 RenderPassRemovalTestData testData;
4129 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS cript, testData, renderer.get()); 4129 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS cript, testData, renderer.get());
4130 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP assesWithCachedTextures(*renderer), testData); 4130 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP assesWithCachedTextures(*renderer), testData);
4131 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat a); 4131 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat a);
4132 testCaseIndex++; 4132 testCaseIndex++;
4133 } 4133 }
4134 } 4134 }
4135 4135
4136 } // namespace 4136 } // namespace
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHostCommonTest.cpp ('k') | cc/CCLayerTreeHostTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698