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

Side by Side Diff: cc/surfaces/surfaces_pixeltest.cc

Issue 2795683003: [cc]Replace use of SurfaceFactory with CompositorFrameSinkSupport in tests (Closed)
Patch Set: Update returned_resources_ in FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck Created 3 years, 8 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
« no previous file with comments | « cc/surfaces/surface_unittest.cc ('k') | cc/test/fake_compositor_frame_sink_support_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/output/compositor_frame.h" 5 #include "cc/output/compositor_frame.h"
6 #include "cc/quads/render_pass.h" 6 #include "cc/quads/render_pass.h"
7 #include "cc/quads/solid_color_draw_quad.h" 7 #include "cc/quads/solid_color_draw_quad.h"
8 #include "cc/quads/surface_draw_quad.h" 8 #include "cc/quads/surface_draw_quad.h"
9 #include "cc/surfaces/compositor_frame_sink_support.h"
9 #include "cc/surfaces/local_surface_id_allocator.h" 10 #include "cc/surfaces/local_surface_id_allocator.h"
10 #include "cc/surfaces/surface.h" 11 #include "cc/surfaces/surface.h"
11 #include "cc/surfaces/surface_aggregator.h" 12 #include "cc/surfaces/surface_aggregator.h"
12 #include "cc/surfaces/surface_factory.h"
13 #include "cc/surfaces/surface_factory_client.h"
14 #include "cc/surfaces/surface_manager.h" 13 #include "cc/surfaces/surface_manager.h"
15 #include "cc/test/pixel_comparator.h" 14 #include "cc/test/pixel_comparator.h"
16 #include "cc/test/pixel_test.h" 15 #include "cc/test/pixel_test.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 17
19 #if !defined(OS_ANDROID) 18 #if !defined(OS_ANDROID)
20 19
21 namespace cc { 20 namespace cc {
22 namespace { 21 namespace {
23 22
24 static constexpr FrameSinkId kArbitraryRootFrameSinkId(1, 1); 23 constexpr FrameSinkId kArbitraryRootFrameSinkId(1, 1);
25 static constexpr FrameSinkId kArbitraryChildFrameSinkId(2, 2); 24 constexpr FrameSinkId kArbitraryChildFrameSinkId(2, 2);
26 static constexpr FrameSinkId kArbitraryLeftFrameSinkId(3, 3); 25 constexpr FrameSinkId kArbitraryLeftFrameSinkId(3, 3);
27 static constexpr FrameSinkId kArbitraryRightFrameSinkId(4, 4); 26 constexpr FrameSinkId kArbitraryRightFrameSinkId(4, 4);
28 27 constexpr bool kIsRoot = true;
29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { 28 constexpr bool kIsChildRoot = false;
30 public: 29 constexpr bool kHandlesFrameSinkIdInvalidation = true;
31 void ReturnResources(const ReturnedResourceArray& resources) override {} 30 constexpr bool kNeedsSyncPoints = true;
32 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {}
33 };
34 31
35 class SurfacesPixelTest : public RendererPixelTest<GLRenderer> { 32 class SurfacesPixelTest : public RendererPixelTest<GLRenderer> {
36 public: 33 public:
37 SurfacesPixelTest() 34 SurfacesPixelTest()
38 : factory_(kArbitraryRootFrameSinkId, &manager_, &client_) {} 35 : support_(
39 ~SurfacesPixelTest() override { factory_.EvictSurface(); } 36 CompositorFrameSinkSupport::Create(nullptr,
37 &manager_,
38 kArbitraryRootFrameSinkId,
39 kIsRoot,
40 kHandlesFrameSinkIdInvalidation,
41 kNeedsSyncPoints)) {}
42 ~SurfacesPixelTest() override { support_->EvictFrame(); }
40 43
41 protected: 44 protected:
42 SurfaceManager manager_; 45 SurfaceManager manager_;
43 LocalSurfaceIdAllocator allocator_; 46 LocalSurfaceIdAllocator allocator_;
44 EmptySurfaceFactoryClient client_; 47 std::unique_ptr<CompositorFrameSinkSupport> support_;
45 SurfaceFactory factory_;
46 }; 48 };
47 49
48 SharedQuadState* CreateAndAppendTestSharedQuadState( 50 SharedQuadState* CreateAndAppendTestSharedQuadState(
49 RenderPass* render_pass, 51 RenderPass* render_pass,
50 const gfx::Transform& transform, 52 const gfx::Transform& transform,
51 const gfx::Size& size) { 53 const gfx::Size& size) {
52 const gfx::Size layer_bounds = size; 54 const gfx::Size layer_bounds = size;
53 const gfx::Rect visible_layer_rect = gfx::Rect(size); 55 const gfx::Rect visible_layer_rect = gfx::Rect(size);
54 const gfx::Rect clip_rect = gfx::Rect(size); 56 const gfx::Rect clip_rect = gfx::Rect(size);
55 bool is_clipped = false; 57 bool is_clipped = false;
(...skipping 22 matching lines...) Expand all
78 rect, 80 rect,
79 rect, 81 rect,
80 SK_ColorGREEN, 82 SK_ColorGREEN,
81 force_anti_aliasing_off); 83 force_anti_aliasing_off);
82 84
83 85
84 CompositorFrame root_frame; 86 CompositorFrame root_frame;
85 root_frame.render_pass_list.push_back(std::move(pass)); 87 root_frame.render_pass_list.push_back(std::move(pass));
86 88
87 LocalSurfaceId root_local_surface_id = allocator_.GenerateId(); 89 LocalSurfaceId root_local_surface_id = allocator_.GenerateId();
88 SurfaceId root_surface_id(factory_.frame_sink_id(), root_local_surface_id); 90 SurfaceId root_surface_id(support_->frame_sink_id(), root_local_surface_id);
89 factory_.SubmitCompositorFrame(root_local_surface_id, std::move(root_frame), 91 support_->SubmitCompositorFrame(root_local_surface_id, std::move(root_frame));
90 SurfaceFactory::DrawCallback());
91 92
92 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true); 93 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true);
93 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id); 94 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id);
94 95
95 bool discard_alpha = false; 96 bool discard_alpha = false;
96 ExactPixelComparator pixel_comparator(discard_alpha); 97 ExactPixelComparator pixel_comparator(discard_alpha);
97 RenderPassList* pass_list = &aggregated_frame.render_pass_list; 98 RenderPassList* pass_list = &aggregated_frame.render_pass_list;
98 EXPECT_TRUE(RunPixelTest(pass_list, 99 EXPECT_TRUE(RunPixelTest(pass_list,
99 base::FilePath(FILE_PATH_LITERAL("green.png")), 100 base::FilePath(FILE_PATH_LITERAL("green.png")),
100 pixel_comparator)); 101 pixel_comparator));
101 } 102 }
102 103
103 // Draws a frame with simple surface embedding. 104 // Draws a frame with simple surface embedding.
104 TEST_F(SurfacesPixelTest, DrawSimpleAggregatedFrame) { 105 TEST_F(SurfacesPixelTest, DrawSimpleAggregatedFrame) {
105 gfx::Size child_size(200, 100); 106 gfx::Size child_size(200, 100);
106 SurfaceFactory child_factory(kArbitraryChildFrameSinkId, &manager_, &client_); 107 std::unique_ptr<CompositorFrameSinkSupport> child_support =
108 CompositorFrameSinkSupport::Create(
109 nullptr, &manager_, kArbitraryChildFrameSinkId, kIsChildRoot,
110 kHandlesFrameSinkIdInvalidation, kNeedsSyncPoints);
111
107 LocalSurfaceId child_local_surface_id = allocator_.GenerateId(); 112 LocalSurfaceId child_local_surface_id = allocator_.GenerateId();
108 SurfaceId child_surface_id(child_factory.frame_sink_id(), 113 SurfaceId child_surface_id(child_support->frame_sink_id(),
109 child_local_surface_id); 114 child_local_surface_id);
110 LocalSurfaceId root_local_surface_id = allocator_.GenerateId(); 115 LocalSurfaceId root_local_surface_id = allocator_.GenerateId();
111 SurfaceId root_surface_id(factory_.frame_sink_id(), root_local_surface_id); 116 SurfaceId root_surface_id(support_->frame_sink_id(), root_local_surface_id);
112 117
113 { 118 {
114 gfx::Rect rect(device_viewport_size_); 119 gfx::Rect rect(device_viewport_size_);
115 int id = 1; 120 int id = 1;
116 std::unique_ptr<RenderPass> pass = RenderPass::Create(); 121 std::unique_ptr<RenderPass> pass = RenderPass::Create();
117 pass->SetNew(id, rect, rect, gfx::Transform()); 122 pass->SetNew(id, rect, rect, gfx::Transform());
118 123
119 CreateAndAppendTestSharedQuadState( 124 CreateAndAppendTestSharedQuadState(
120 pass.get(), gfx::Transform(), device_viewport_size_); 125 pass.get(), gfx::Transform(), device_viewport_size_);
121 126
122 SurfaceDrawQuad* surface_quad = 127 SurfaceDrawQuad* surface_quad =
123 pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>(); 128 pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
124 surface_quad->SetNew(pass->shared_quad_state_list.back(), 129 surface_quad->SetNew(pass->shared_quad_state_list.back(),
125 gfx::Rect(child_size), gfx::Rect(child_size), 130 gfx::Rect(child_size), gfx::Rect(child_size),
126 child_surface_id, SurfaceDrawQuadType::PRIMARY, 131 child_surface_id, SurfaceDrawQuadType::PRIMARY,
127 nullptr); 132 nullptr);
128 133
129 SolidColorDrawQuad* color_quad = 134 SolidColorDrawQuad* color_quad =
130 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 135 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
131 bool force_anti_aliasing_off = false; 136 bool force_anti_aliasing_off = false;
132 color_quad->SetNew(pass->shared_quad_state_list.back(), 137 color_quad->SetNew(pass->shared_quad_state_list.back(),
133 rect, 138 rect,
134 rect, 139 rect,
135 SK_ColorYELLOW, 140 SK_ColorYELLOW,
136 force_anti_aliasing_off); 141 force_anti_aliasing_off);
137 142
138 CompositorFrame root_frame; 143 CompositorFrame root_frame;
139 root_frame.render_pass_list.push_back(std::move(pass)); 144 root_frame.render_pass_list.push_back(std::move(pass));
140 145
141 factory_.SubmitCompositorFrame(root_local_surface_id, std::move(root_frame), 146 support_->SubmitCompositorFrame(root_local_surface_id,
142 SurfaceFactory::DrawCallback()); 147 std::move(root_frame));
143 } 148 }
144 149
145 { 150 {
146 gfx::Rect rect(child_size); 151 gfx::Rect rect(child_size);
147 int id = 1; 152 int id = 1;
148 std::unique_ptr<RenderPass> pass = RenderPass::Create(); 153 std::unique_ptr<RenderPass> pass = RenderPass::Create();
149 pass->SetNew(id, rect, rect, gfx::Transform()); 154 pass->SetNew(id, rect, rect, gfx::Transform());
150 155
151 CreateAndAppendTestSharedQuadState( 156 CreateAndAppendTestSharedQuadState(
152 pass.get(), gfx::Transform(), child_size); 157 pass.get(), gfx::Transform(), child_size);
153 158
154 SolidColorDrawQuad* color_quad = 159 SolidColorDrawQuad* color_quad =
155 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 160 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
156 bool force_anti_aliasing_off = false; 161 bool force_anti_aliasing_off = false;
157 color_quad->SetNew(pass->shared_quad_state_list.back(), 162 color_quad->SetNew(pass->shared_quad_state_list.back(),
158 rect, 163 rect,
159 rect, 164 rect,
160 SK_ColorBLUE, 165 SK_ColorBLUE,
161 force_anti_aliasing_off); 166 force_anti_aliasing_off);
162 167
163 CompositorFrame child_frame; 168 CompositorFrame child_frame;
164 child_frame.render_pass_list.push_back(std::move(pass)); 169 child_frame.render_pass_list.push_back(std::move(pass));
165 170
166 child_factory.SubmitCompositorFrame(child_local_surface_id, 171 child_support->SubmitCompositorFrame(child_local_surface_id,
167 std::move(child_frame), 172 std::move(child_frame));
168 SurfaceFactory::DrawCallback());
169 } 173 }
170 174
171 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true); 175 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true);
172 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id); 176 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id);
173 177
174 bool discard_alpha = false; 178 bool discard_alpha = false;
175 ExactPixelComparator pixel_comparator(discard_alpha); 179 ExactPixelComparator pixel_comparator(discard_alpha);
176 RenderPassList* pass_list = &aggregated_frame.render_pass_list; 180 RenderPassList* pass_list = &aggregated_frame.render_pass_list;
177 EXPECT_TRUE(RunPixelTest(pass_list, 181 EXPECT_TRUE(RunPixelTest(pass_list,
178 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png")), 182 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png")),
179 pixel_comparator)); 183 pixel_comparator));
180 184
181 child_factory.EvictSurface(); 185 child_support->EvictFrame();
182 } 186 }
183 187
184 // Tests a surface quad that has a non-identity transform into its pass. 188 // Tests a surface quad that has a non-identity transform into its pass.
185 TEST_F(SurfacesPixelTest, DrawAggregatedFrameWithSurfaceTransforms) { 189 TEST_F(SurfacesPixelTest, DrawAggregatedFrameWithSurfaceTransforms) {
186 gfx::Size child_size(100, 200); 190 gfx::Size child_size(100, 200);
187 gfx::Size quad_size(100, 100); 191 gfx::Size quad_size(100, 100);
188 // Structure: 192 // Structure:
189 // root (200x200) -> left_child (100x200 @ 0x0, 193 // root (200x200) -> left_child (100x200 @ 0x0,
190 // right_child (100x200 @ 0x100) 194 // right_child (100x200 @ 0x100)
191 // left_child -> top_green_quad (100x100 @ 0x0), 195 // left_child -> top_green_quad (100x100 @ 0x0),
192 // bottom_blue_quad (100x100 @ 0x100) 196 // bottom_blue_quad (100x100 @ 0x100)
193 // right_child -> top_blue_quad (100x100 @ 0x0), 197 // right_child -> top_blue_quad (100x100 @ 0x0),
194 // bottom_green_quad (100x100 @ 0x100) 198 // bottom_green_quad (100x100 @ 0x100)
195 SurfaceFactory left_factory(kArbitraryLeftFrameSinkId, &manager_, &client_); 199 std::unique_ptr<CompositorFrameSinkSupport> left_support =
196 SurfaceFactory right_factory(kArbitraryRightFrameSinkId, &manager_, &client_); 200 CompositorFrameSinkSupport::Create(
201 nullptr, &manager_, kArbitraryLeftFrameSinkId, kIsChildRoot,
202 kHandlesFrameSinkIdInvalidation, kNeedsSyncPoints);
203 std::unique_ptr<CompositorFrameSinkSupport> right_support =
204 CompositorFrameSinkSupport::Create(
205 nullptr, &manager_, kArbitraryRightFrameSinkId, kIsChildRoot,
206 kHandlesFrameSinkIdInvalidation, kNeedsSyncPoints);
197 LocalSurfaceId left_child_local_id = allocator_.GenerateId(); 207 LocalSurfaceId left_child_local_id = allocator_.GenerateId();
198 SurfaceId left_child_id(left_factory.frame_sink_id(), left_child_local_id); 208 SurfaceId left_child_id(left_support->frame_sink_id(), left_child_local_id);
199 LocalSurfaceId right_child_local_id = allocator_.GenerateId(); 209 LocalSurfaceId right_child_local_id = allocator_.GenerateId();
200 SurfaceId right_child_id(right_factory.frame_sink_id(), right_child_local_id); 210 SurfaceId right_child_id(right_support->frame_sink_id(),
211 right_child_local_id);
201 LocalSurfaceId root_local_surface_id = allocator_.GenerateId(); 212 LocalSurfaceId root_local_surface_id = allocator_.GenerateId();
202 SurfaceId root_surface_id(factory_.frame_sink_id(), root_local_surface_id); 213 SurfaceId root_surface_id(support_->frame_sink_id(), root_local_surface_id);
203 214
204 { 215 {
205 gfx::Rect rect(device_viewport_size_); 216 gfx::Rect rect(device_viewport_size_);
206 int id = 1; 217 int id = 1;
207 std::unique_ptr<RenderPass> pass = RenderPass::Create(); 218 std::unique_ptr<RenderPass> pass = RenderPass::Create();
208 pass->SetNew(id, rect, rect, gfx::Transform()); 219 pass->SetNew(id, rect, rect, gfx::Transform());
209 220
210 gfx::Transform surface_transform; 221 gfx::Transform surface_transform;
211 CreateAndAppendTestSharedQuadState( 222 CreateAndAppendTestSharedQuadState(
212 pass.get(), surface_transform, device_viewport_size_); 223 pass.get(), surface_transform, device_viewport_size_);
(...skipping 12 matching lines...) Expand all
225 SurfaceDrawQuad* right_surface_quad = 236 SurfaceDrawQuad* right_surface_quad =
226 pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>(); 237 pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
227 right_surface_quad->SetNew(pass->shared_quad_state_list.back(), 238 right_surface_quad->SetNew(pass->shared_quad_state_list.back(),
228 gfx::Rect(child_size), gfx::Rect(child_size), 239 gfx::Rect(child_size), gfx::Rect(child_size),
229 right_child_id, SurfaceDrawQuadType::PRIMARY, 240 right_child_id, SurfaceDrawQuadType::PRIMARY,
230 nullptr); 241 nullptr);
231 242
232 CompositorFrame root_frame; 243 CompositorFrame root_frame;
233 root_frame.render_pass_list.push_back(std::move(pass)); 244 root_frame.render_pass_list.push_back(std::move(pass));
234 245
235 factory_.SubmitCompositorFrame(root_local_surface_id, std::move(root_frame), 246 support_->SubmitCompositorFrame(root_local_surface_id,
236 SurfaceFactory::DrawCallback()); 247 std::move(root_frame));
237 } 248 }
238 249
239 { 250 {
240 gfx::Rect rect(child_size); 251 gfx::Rect rect(child_size);
241 int id = 1; 252 int id = 1;
242 std::unique_ptr<RenderPass> pass = RenderPass::Create(); 253 std::unique_ptr<RenderPass> pass = RenderPass::Create();
243 pass->SetNew(id, rect, rect, gfx::Transform()); 254 pass->SetNew(id, rect, rect, gfx::Transform());
244 255
245 CreateAndAppendTestSharedQuadState( 256 CreateAndAppendTestSharedQuadState(
246 pass.get(), gfx::Transform(), child_size); 257 pass.get(), gfx::Transform(), child_size);
(...skipping 11 matching lines...) Expand all
258 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 269 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
259 bottom_color_quad->SetNew(pass->shared_quad_state_list.back(), 270 bottom_color_quad->SetNew(pass->shared_quad_state_list.back(),
260 gfx::Rect(0, 100, 100, 100), 271 gfx::Rect(0, 100, 100, 100),
261 gfx::Rect(0, 100, 100, 100), 272 gfx::Rect(0, 100, 100, 100),
262 SK_ColorBLUE, 273 SK_ColorBLUE,
263 force_anti_aliasing_off); 274 force_anti_aliasing_off);
264 275
265 CompositorFrame child_frame; 276 CompositorFrame child_frame;
266 child_frame.render_pass_list.push_back(std::move(pass)); 277 child_frame.render_pass_list.push_back(std::move(pass));
267 278
268 left_factory.SubmitCompositorFrame(left_child_local_id, 279 left_support->SubmitCompositorFrame(left_child_local_id,
269 std::move(child_frame), 280 std::move(child_frame));
270 SurfaceFactory::DrawCallback());
271 } 281 }
272 282
273 { 283 {
274 gfx::Rect rect(child_size); 284 gfx::Rect rect(child_size);
275 int id = 1; 285 int id = 1;
276 std::unique_ptr<RenderPass> pass = RenderPass::Create(); 286 std::unique_ptr<RenderPass> pass = RenderPass::Create();
277 pass->SetNew(id, rect, rect, gfx::Transform()); 287 pass->SetNew(id, rect, rect, gfx::Transform());
278 288
279 CreateAndAppendTestSharedQuadState( 289 CreateAndAppendTestSharedQuadState(
280 pass.get(), gfx::Transform(), child_size); 290 pass.get(), gfx::Transform(), child_size);
(...skipping 11 matching lines...) Expand all
292 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 302 pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
293 bottom_color_quad->SetNew(pass->shared_quad_state_list.back(), 303 bottom_color_quad->SetNew(pass->shared_quad_state_list.back(),
294 gfx::Rect(0, 100, 100, 100), 304 gfx::Rect(0, 100, 100, 100),
295 gfx::Rect(0, 100, 100, 100), 305 gfx::Rect(0, 100, 100, 100),
296 SK_ColorGREEN, 306 SK_ColorGREEN,
297 force_anti_aliasing_off); 307 force_anti_aliasing_off);
298 308
299 CompositorFrame child_frame; 309 CompositorFrame child_frame;
300 child_frame.render_pass_list.push_back(std::move(pass)); 310 child_frame.render_pass_list.push_back(std::move(pass));
301 311
302 right_factory.SubmitCompositorFrame(right_child_local_id, 312 right_support->SubmitCompositorFrame(right_child_local_id,
303 std::move(child_frame), 313 std::move(child_frame));
304 SurfaceFactory::DrawCallback());
305 } 314 }
306 315
307 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true); 316 SurfaceAggregator aggregator(&manager_, resource_provider_.get(), true);
308 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id); 317 CompositorFrame aggregated_frame = aggregator.Aggregate(root_surface_id);
309 318
310 bool discard_alpha = false; 319 bool discard_alpha = false;
311 ExactPixelComparator pixel_comparator(discard_alpha); 320 ExactPixelComparator pixel_comparator(discard_alpha);
312 RenderPassList* pass_list = &aggregated_frame.render_pass_list; 321 RenderPassList* pass_list = &aggregated_frame.render_pass_list;
313 EXPECT_TRUE(RunPixelTest( 322 EXPECT_TRUE(RunPixelTest(
314 pass_list, 323 pass_list,
315 base::FilePath(FILE_PATH_LITERAL("four_blue_green_checkers.png")), 324 base::FilePath(FILE_PATH_LITERAL("four_blue_green_checkers.png")),
316 pixel_comparator)); 325 pixel_comparator));
317 326
318 left_factory.EvictSurface(); 327 left_support->EvictFrame();
319 right_factory.EvictSurface(); 328 right_support->EvictFrame();
320 } 329 }
321 330
322 } // namespace 331 } // namespace
323 } // namespace cc 332 } // namespace cc
324 333
325 #endif // !defined(OS_ANDROID) 334 #endif // !defined(OS_ANDROID)
OLDNEW
« no previous file with comments | « cc/surfaces/surface_unittest.cc ('k') | cc/test/fake_compositor_frame_sink_support_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698