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

Side by Side Diff: cc/test/layer_test_common.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_external_begin_frame_source.h ('k') | cc/test/layer_tree_host_common_test.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 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 "cc/test/layer_test_common.h" 5 #include "cc/test/layer_test_common.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/layers/append_quads_data.h" 9 #include "cc/layers/append_quads_data.h"
10 #include "cc/quads/draw_quad.h" 10 #include "cc/quads/draw_quad.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ++(*partially_occluded_count); 96 ++(*partially_occluded_count);
97 } 97 }
98 } 98 }
99 } 99 }
100 100
101 LayerTestCommon::LayerImplTest::LayerImplTest() 101 LayerTestCommon::LayerImplTest::LayerImplTest()
102 : client_(FakeLayerTreeHostClient::DIRECT_3D), 102 : client_(FakeLayerTreeHostClient::DIRECT_3D),
103 host_(FakeLayerTreeHost::Create(&client_)), 103 host_(FakeLayerTreeHost::Create(&client_)),
104 root_layer_impl_(LayerImpl::Create(host_->host_impl()->active_tree(), 1)), 104 root_layer_impl_(LayerImpl::Create(host_->host_impl()->active_tree(), 1)),
105 render_pass_(RenderPass::Create()) { 105 render_pass_(RenderPass::Create()) {
106 root_layer_impl_->SetHasRenderSurface(true);
106 scoped_ptr<FakeOutputSurface> output_surface = FakeOutputSurface::Create3d(); 107 scoped_ptr<FakeOutputSurface> output_surface = FakeOutputSurface::Create3d();
107 host_->host_impl()->InitializeRenderer(FakeOutputSurface::Create3d()); 108 host_->host_impl()->InitializeRenderer(FakeOutputSurface::Create3d());
108 } 109 }
109 110
110 LayerTestCommon::LayerImplTest::~LayerImplTest() {} 111 LayerTestCommon::LayerImplTest::~LayerImplTest() {}
111 112
112 void LayerTestCommon::LayerImplTest::CalcDrawProps( 113 void LayerTestCommon::LayerImplTest::CalcDrawProps(
113 const gfx::Size& viewport_size) { 114 const gfx::Size& viewport_size) {
114 LayerImplList layer_list; 115 LayerImplList layer_list;
115 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs( 116 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 render_pass_->shared_quad_state_list.clear(); 162 render_pass_->shared_quad_state_list.clear();
162 occlusion_tracker_.set_occluded_target_rect_for_contributing_surface( 163 occlusion_tracker_.set_occluded_target_rect_for_contributing_surface(
163 occluded); 164 occluded);
164 bool for_replica = false; 165 bool for_replica = false;
165 RenderPassId id(1, 1); 166 RenderPassId id(1, 1);
166 surface_impl->AppendQuads( 167 surface_impl->AppendQuads(
167 render_pass_.get(), occlusion_tracker_, &data, for_replica, id); 168 render_pass_.get(), occlusion_tracker_, &data, for_replica, id);
168 } 169 }
169 170
170 } // namespace cc 171 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_external_begin_frame_source.h ('k') | cc/test/layer_tree_host_common_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698