diff options
author | Alex Mineer <amineer@chromium.org> | 2016-03-18 18:06:30 -0700 |
---|---|---|
committer | Alex Mineer <amineer@chromium.org> | 2016-03-19 01:08:43 +0000 |
commit | bb7c0354713efcb13b8c180ac917f69cd308d266 (patch) | |
tree | 45145c8abd2d689a8a769c9fa00fe3054aaa138c | |
parent | c029461948ee993a10983d2c72ec3102695e2e44 (diff) | |
download | chromium_src-bb7c0354713efcb13b8c180ac917f69cd308d266.zip chromium_src-bb7c0354713efcb13b8c180ac917f69cd308d266.tar.gz chromium_src-bb7c0354713efcb13b8c180ac917f69cd308d266.tar.bz2 |
Removing unnecessary tests to fix build
Cr-Commit-Position: refs/branch-heads/2623@{#643}
Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}
-rw-r--r-- | cc/layers/picture_layer_unittest.cc | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc index 2cdd8a4..1baa811 100644 --- a/cc/layers/picture_layer_unittest.cc +++ b/cc/layers/picture_layer_unittest.cc @@ -203,90 +203,6 @@ TEST(PictureLayerTest, NoTilesIfEmptyBounds) { EXPECT_FALSE(layer_impl->raster_source()->HasRecordings()); } -TEST(PictureLayerTest, InvalidateRasterAfterUpdate) { - gfx::Size layer_size(50, 50); - FakeContentLayerClient client; - client.set_bounds(layer_size); - scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); - layer->SetBounds(gfx::Size(50, 50)); - - FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D); - TestTaskGraphRunner task_graph_runner; - scoped_ptr<FakeLayerTreeHost> host = - FakeLayerTreeHost::Create(&host_client, &task_graph_runner); - host->SetRootLayer(layer); - layer->SetIsDrawable(true); - layer->SavePaintProperties(); - - gfx::Rect invalidation_bounds(layer_size); - - // The important two lines are the following: - layer->SetNeedsDisplayRect(invalidation_bounds); - layer->Update(); - - host->CommitComplete(); - FakeImplTaskRunnerProvider impl_task_runner_provider; - TestSharedBitmapManager shared_bitmap_manager; - scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d()); - LayerTreeSettings layer_tree_settings = LayerTreeSettings(); - layer_tree_settings.image_decode_tasks_enabled = true; - FakeLayerTreeHostImpl host_impl(layer_tree_settings, - &impl_task_runner_provider, - &shared_bitmap_manager, &task_graph_runner); - host_impl.SetVisible(true); - host_impl.InitializeRenderer(output_surface.get()); - host_impl.CreatePendingTree(); - host_impl.pending_tree()->SetRootLayer( - FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); - FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( - host_impl.pending_tree()->root_layer()); - layer->PushPropertiesTo(layer_impl); - - EXPECT_EQ(invalidation_bounds, - layer_impl->GetPendingInvalidation()->bounds()); -} - -TEST(PictureLayerTest, InvalidateRasterWithoutUpdate) { - gfx::Size layer_size(50, 50); - FakeContentLayerClient client; - client.set_bounds(layer_size); - scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); - layer->SetBounds(gfx::Size(50, 50)); - - FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D); - TestTaskGraphRunner task_graph_runner; - scoped_ptr<FakeLayerTreeHost> host = - FakeLayerTreeHost::Create(&host_client, &task_graph_runner); - host->SetRootLayer(layer); - layer->SetIsDrawable(true); - layer->SavePaintProperties(); - - gfx::Rect invalidation_bounds(layer_size); - - // The important line is the following (note that we do not call Update): - layer->SetNeedsDisplayRect(invalidation_bounds); - - host->CommitComplete(); - FakeImplTaskRunnerProvider impl_task_runner_provider; - TestSharedBitmapManager shared_bitmap_manager; - scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d()); - LayerTreeSettings layer_tree_settings = LayerTreeSettings(); - layer_tree_settings.image_decode_tasks_enabled = true; - FakeLayerTreeHostImpl host_impl(layer_tree_settings, - &impl_task_runner_provider, - &shared_bitmap_manager, &task_graph_runner); - host_impl.SetVisible(true); - host_impl.InitializeRenderer(output_surface.get()); - host_impl.CreatePendingTree(); - host_impl.pending_tree()->SetRootLayer( - FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); - FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( - host_impl.pending_tree()->root_layer()); - layer->PushPropertiesTo(layer_impl); - - EXPECT_EQ(gfx::Rect(), layer_impl->GetPendingInvalidation()->bounds()); -} - TEST(PictureLayerTest, ClearVisibleRectWhenNoTiling) { gfx::Size layer_size(50, 50); FakeContentLayerClient client; |