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

Side by Side Diff: cc/CCRenderPassTest.cpp

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
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 "CCRenderPass.h" 7 #include "CCRenderPass.h"
8 8
9 #include "CCCheckerboardDrawQuad.h" 9 #include "CCCheckerboardDrawQuad.h"
10 #include "CCGeometryTestUtils.h" 10 #include "CCGeometryTestUtils.h"
11 #include <gtest/gtest.h> 11 #include <gtest/gtest.h>
12 #include <public/WebFilterOperations.h> 12 #include <public/WebFilterOperations.h>
13 #include <public/WebTransformationMatrix.h> 13 #include <public/WebTransformationMatrix.h>
14 14
15 using WebKit::WebFilterOperation; 15 using WebKit::WebFilterOperation;
16 using WebKit::WebFilterOperations; 16 using WebKit::WebFilterOperations;
17 using WebKit::WebTransformationMatrix; 17 using WebKit::WebTransformationMatrix;
18 18
19 using namespace cc; 19 using ccmath::IntRect;
20 using ccmath::FloatRect;
21
22 using cc::CCCheckerboardDrawQuad;
23 using cc::CCQuadList;
24 using cc::CCRenderPass;
25 using cc::CCSharedQuadState;
26 using cc::CCSharedQuadStateList;
20 27
21 namespace { 28 namespace {
22 29
23 class CCTestRenderPass : public CCRenderPass { 30 class CCTestRenderPass : public CCRenderPass {
24 public: 31 public:
25 CCQuadList& quadList() { return m_quadList; } 32 CCQuadList& quadList() { return m_quadList; }
26 CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateList; } 33 CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateList; }
27 }; 34 };
28 35
29 struct CCRenderPassSize { 36 struct CCRenderPassSize {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 EXPECT_EQ(pass->hasTransparentBackground(), copy->hasTransparentBackground() ); 85 EXPECT_EQ(pass->hasTransparentBackground(), copy->hasTransparentBackground() );
79 EXPECT_EQ(pass->hasOcclusionFromOutsideTargetSurface(), copy->hasOcclusionFr omOutsideTargetSurface()); 86 EXPECT_EQ(pass->hasOcclusionFromOutsideTargetSurface(), copy->hasOcclusionFr omOutsideTargetSurface());
80 EXPECT_EQ(pass->filters(), copy->filters()); 87 EXPECT_EQ(pass->filters(), copy->filters());
81 EXPECT_EQ(pass->backgroundFilters(), copy->backgroundFilters()); 88 EXPECT_EQ(pass->backgroundFilters(), copy->backgroundFilters());
82 EXPECT_EQ(0u, copy->quadList().size()); 89 EXPECT_EQ(0u, copy->quadList().size());
83 90
84 EXPECT_EQ(sizeof(CCRenderPassSize), sizeof(CCRenderPass)); 91 EXPECT_EQ(sizeof(CCRenderPassSize), sizeof(CCRenderPass));
85 } 92 }
86 93
87 } // namespace 94 } // namespace
OLDNEW
« no previous file with comments | « cc/CCRenderPassDrawQuad.cpp ('k') | cc/CCRenderer.h » ('j') | cc/math/clamp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698