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

Side by Side Diff: cc/output/overlay_unittest.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/layers/tiled_layer_unittest.cc ('k') | cc/quads/draw_polygon_unittest.cc » ('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/base/scoped_ptr_vector.h" 5 #include "cc/base/scoped_ptr_vector.h"
6 #include "cc/output/gl_renderer.h" 6 #include "cc/output/gl_renderer.h"
7 #include "cc/output/output_surface.h" 7 #include "cc/output/output_surface.h"
8 #include "cc/output/output_surface_client.h" 8 #include "cc/output/output_surface_client.h"
9 #include "cc/output/overlay_candidate_validator.h" 9 #include "cc/output/overlay_candidate_validator.h"
10 #include "cc/output/overlay_processor.h" 10 #include "cc/output/overlay_processor.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 199
200 static void CompareRenderPassLists(const RenderPassList& expected_list, 200 static void CompareRenderPassLists(const RenderPassList& expected_list,
201 const RenderPassList& actual_list) { 201 const RenderPassList& actual_list) {
202 EXPECT_EQ(expected_list.size(), actual_list.size()); 202 EXPECT_EQ(expected_list.size(), actual_list.size());
203 for (size_t i = 0; i < actual_list.size(); ++i) { 203 for (size_t i = 0; i < actual_list.size(); ++i) {
204 RenderPass* expected = expected_list[i]; 204 RenderPass* expected = expected_list[i];
205 RenderPass* actual = actual_list[i]; 205 RenderPass* actual = actual_list[i];
206 206
207 EXPECT_EQ(expected->id, actual->id); 207 EXPECT_EQ(expected->id, actual->id);
208 EXPECT_RECT_EQ(expected->output_rect, actual->output_rect); 208 EXPECT_EQ(expected->output_rect, actual->output_rect);
209 EXPECT_EQ(expected->transform_to_root_target, 209 EXPECT_EQ(expected->transform_to_root_target,
210 actual->transform_to_root_target); 210 actual->transform_to_root_target);
211 EXPECT_RECT_EQ(expected->damage_rect, actual->damage_rect); 211 EXPECT_EQ(expected->damage_rect, actual->damage_rect);
212 EXPECT_EQ(expected->has_transparent_background, 212 EXPECT_EQ(expected->has_transparent_background,
213 actual->has_transparent_background); 213 actual->has_transparent_background);
214 214
215 EXPECT_EQ(expected->shared_quad_state_list.size(), 215 EXPECT_EQ(expected->shared_quad_state_list.size(),
216 actual->shared_quad_state_list.size()); 216 actual->shared_quad_state_list.size());
217 EXPECT_EQ(expected->quad_list.size(), actual->quad_list.size()); 217 EXPECT_EQ(expected->quad_list.size(), actual->quad_list.size());
218 218
219 for (auto exp_iter = expected->quad_list.cbegin(), 219 for (auto exp_iter = expected->quad_list.cbegin(),
220 act_iter = actual->quad_list.cbegin(); 220 act_iter = actual->quad_list.cbegin();
221 exp_iter != expected->quad_list.cend(); 221 exp_iter != expected->quad_list.cend();
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 renderer_->BeginDrawingFrame(&frame3); 807 renderer_->BeginDrawingFrame(&frame3);
808 renderer_->FinishDrawingFrame(&frame3); 808 renderer_->FinishDrawingFrame(&frame3);
809 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1)); 809 EXPECT_TRUE(resource_provider_->InUseByConsumer(resource1));
810 SwapBuffers(); 810 SwapBuffers();
811 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1)); 811 EXPECT_FALSE(resource_provider_->InUseByConsumer(resource1));
812 Mock::VerifyAndClearExpectations(&scheduler_); 812 Mock::VerifyAndClearExpectations(&scheduler_);
813 } 813 }
814 814
815 } // namespace 815 } // namespace
816 } // namespace cc 816 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/quads/draw_polygon_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698