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

Unified Diff: cc/test/layer_test_common.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/layer_tree_pixel_resource_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index 99d3c1c06996a613ad9e3907230ed7c534d74e01..7e835b892a59a1fe372672fad0dddd2dec52e13d 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -137,19 +137,19 @@ void LayerTestCommon::LayerImplTest::AppendQuadsWithOcclusion(
void LayerTestCommon::LayerImplTest::AppendQuadsForPassWithOcclusion(
LayerImpl* layer_impl,
- const RenderPassId& id,
+ RenderPass* given_render_pass,
const gfx::Rect& occluded) {
- AppendQuadsData data(id);
+ AppendQuadsData data;
- render_pass_->quad_list.clear();
- render_pass_->shared_quad_state_list.clear();
+ given_render_pass->quad_list.clear();
+ given_render_pass->shared_quad_state_list.clear();
Occlusion occlusion(layer_impl->draw_transform(),
SimpleEnclosedRegion(occluded),
SimpleEnclosedRegion());
layer_impl->WillDraw(DRAW_MODE_HARDWARE, resource_provider());
- layer_impl->AppendQuads(render_pass_.get(), occlusion, &data);
+ layer_impl->AppendQuads(given_render_pass, occlusion, &data);
layer_impl->DidDraw(resource_provider());
}
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/layer_tree_pixel_resource_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698