OLD | NEW |
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 "CCRenderSurfaceFilters.h" | 7 #include "CCRenderSurfaceFilters.h" |
8 | 8 |
9 #include "CompositorFakeWebGraphicsContext3D.h" | 9 #include "CompositorFakeWebGraphicsContext3D.h" |
10 #include <gtest/gtest.h> | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include <public/WebFilterOperation.h> | 11 #include <public/WebFilterOperation.h> |
12 #include <public/WebFilterOperations.h> | 12 #include <public/WebFilterOperations.h> |
13 #include <wtf/RefPtr.h> | 13 #include <wtf/RefPtr.h> |
14 | 14 |
15 using namespace cc; | 15 using namespace cc; |
16 using namespace WebKit; | 16 using namespace WebKit; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Checks whether op can be combined with a following color matrix. | 20 // Checks whether op can be combined with a following color matrix. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 filters.append(doesntCombine); | 132 filters.append(doesntCombine); |
133 optimized = CCRenderSurfaceFilters::optimize(filters); | 133 optimized = CCRenderSurfaceFilters::optimize(filters); |
134 EXPECT_EQ(2u, optimized.size()); | 134 EXPECT_EQ(2u, optimized.size()); |
135 | 135 |
136 filters.append(doesntCombine); | 136 filters.append(doesntCombine); |
137 optimized = CCRenderSurfaceFilters::optimize(filters); | 137 optimized = CCRenderSurfaceFilters::optimize(filters); |
138 EXPECT_EQ(3u, optimized.size()); | 138 EXPECT_EQ(3u, optimized.size()); |
139 } | 139 } |
140 | 140 |
141 } // namespace | 141 } // namespace |
OLD | NEW |