diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-17 23:11:38 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-17 23:11:38 +0000 |
commit | f31cf7bf95f70d41e183fca70cb9a1cfe86e2850 (patch) | |
tree | 94b8b66fecd35a0165a980944dc2dfb262c0f25a /cc/test/layer_test_common.cc | |
parent | f1fe3115997b08ea26920e2ac6920eb0e9cdbe90 (diff) | |
download | chromium_src-f31cf7bf95f70d41e183fca70cb9a1cfe86e2850.zip chromium_src-f31cf7bf95f70d41e183fca70cb9a1cfe86e2850.tar.gz chromium_src-f31cf7bf95f70d41e183fca70cb9a1cfe86e2850.tar.bz2 |
cc: Apply occlusion before creating quads in IOSurfaceLayerImpl.
This makes the AppendQuads method query occlusion directly and subtract
it from the quads it would create before they are created, skipping
quads that are completely occluded and avoiding a malloc/free for them.
R=enne
BUG=344962
Review URL: https://codereview.chromium.org/200423005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_test_common.cc')
-rw-r--r-- | cc/test/layer_test_common.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc index 66e49a8..85fbf6b 100644 --- a/cc/test/layer_test_common.cc +++ b/cc/test/layer_test_common.cc @@ -86,4 +86,11 @@ void LayerTestCommon::VerifyQuadsCoverRectWithOcclusion( } } +LayerTestCommon::LayerImplTest::LayerImplTest() + : host_(FakeLayerTreeHost::Create()), + root_layer_impl_( + LayerImpl::Create(host_->host_impl()->active_tree(), 1)) {} + +LayerTestCommon::LayerImplTest::~LayerImplTest() {} + } // namespace cc |