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

Side by Side Diff: cc/CCDelegatedRendererLayerImplTest.cpp

Issue 10961008: cc: Remove TextureUploaderOption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Settle for removing TextureUploaderOption in this CL. I'll figure out what to do with the uploader … 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 | « no previous file | cc/CCLayerTreeHostImpl.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "CCDelegatedRendererLayerImpl.h" 7 #include "CCDelegatedRendererLayerImpl.h"
8 8
9 #include "CCAppendQuadsData.h" 9 #include "CCAppendQuadsData.h"
10 #include "CCGeometryTestUtils.h" 10 #include "CCGeometryTestUtils.h"
(...skipping 20 matching lines...) Expand all
31 namespace { 31 namespace {
32 32
33 class CCDelegatedRendererLayerImplTest : public testing::Test, public CCLayerTre eHostImplClient { 33 class CCDelegatedRendererLayerImplTest : public testing::Test, public CCLayerTre eHostImplClient {
34 public: 34 public:
35 CCDelegatedRendererLayerImplTest() 35 CCDelegatedRendererLayerImplTest()
36 { 36 {
37 CCLayerTreeSettings settings; 37 CCLayerTreeSettings settings;
38 settings.minimumOcclusionTrackingSize = IntSize(); 38 settings.minimumOcclusionTrackingSize = IntSize();
39 39
40 m_hostImpl = CCLayerTreeHostImpl::create(settings, this); 40 m_hostImpl = CCLayerTreeHostImpl::create(settings, this);
41 m_hostImpl->initializeRenderer(createContext(), UnthrottledUploader); 41 m_hostImpl->initializeRenderer(createContext());
42 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); 42 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10));
43 } 43 }
44 44
45 // CCLayerTreeHostImplClient implementation. 45 // CCLayerTreeHostImplClient implementation.
46 virtual void didLoseContextOnImplThread() OVERRIDE { } 46 virtual void didLoseContextOnImplThread() OVERRIDE { }
47 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } 47 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
48 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } 48 virtual void onVSyncParametersChanged(double, double) OVERRIDE { }
49 virtual void onCanDrawStateChanged(bool) OVERRIDE { } 49 virtual void onCanDrawStateChanged(bool) OVERRIDE { }
50 virtual void setNeedsRedrawOnImplThread() OVERRIDE { } 50 virtual void setNeedsRedrawOnImplThread() OVERRIDE { }
51 virtual void setNeedsCommitOnImplThread() OVERRIDE { } 51 virtual void setNeedsCommitOnImplThread() OVERRIDE { }
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 370
371 // Quads from non-root RenderPasses should not be shifted though. 371 // Quads from non-root RenderPasses should not be shifted though.
372 ASSERT_EQ(2u, frame.renderPasses[2]->quadList().size()); 372 ASSERT_EQ(2u, frame.renderPasses[2]->quadList().size());
373 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[2]->quadList()[0]->quadTransform()); 373 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[2]->quadList()[0]->quadTransform());
374 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[2]->quadList()[1]->quadTransform()); 374 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[2]->quadList()[1]->quadTransform());
375 ASSERT_EQ(1u, frame.renderPasses[1]->quadList().size()); 375 ASSERT_EQ(1u, frame.renderPasses[1]->quadList().size());
376 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[1]->quadList()[0]->quadTransform()); 376 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse s[1]->quadList()[0]->quadTransform());
377 } 377 }
378 378
379 } // namespace 379 } // namespace
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerTreeHostImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698