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

Side by Side Diff: cc/layers/picture_image_layer_impl_unittest.cc

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 years, 2 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/layers/nine_patch_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/layers/picture_image_layer_impl.h" 5 #include "cc/layers/picture_image_layer_impl.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "cc/layers/append_quads_data.h" 8 #include "cc/layers/append_quads_data.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/test/fake_display_list_raster_source.h" 10 #include "cc/test/fake_display_list_raster_source.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class PictureImageLayerImplTest : public testing::Test { 42 class PictureImageLayerImplTest : public testing::Test {
43 public: 43 public:
44 PictureImageLayerImplTest() 44 PictureImageLayerImplTest()
45 : proxy_(base::ThreadTaskRunnerHandle::Get()), 45 : proxy_(base::ThreadTaskRunnerHandle::Get()),
46 output_surface_(FakeOutputSurface::Create3d()), 46 output_surface_(FakeOutputSurface::Create3d()),
47 host_impl_(PictureLayerImplImageTestSettings(), 47 host_impl_(PictureLayerImplImageTestSettings(),
48 &proxy_, 48 &proxy_,
49 &shared_bitmap_manager_, 49 &shared_bitmap_manager_,
50 &task_graph_runner_) { 50 &task_graph_runner_) {
51 host_impl_.CreatePendingTree(); 51 host_impl_.CreatePendingTree();
52 host_impl_.SetVisible(true);
52 host_impl_.InitializeRenderer(output_surface_.get()); 53 host_impl_.InitializeRenderer(output_surface_.get());
53 } 54 }
54 55
55 scoped_ptr<TestablePictureImageLayerImpl> CreateLayer(int id, 56 scoped_ptr<TestablePictureImageLayerImpl> CreateLayer(int id,
56 WhichTree which_tree) { 57 WhichTree which_tree) {
57 LayerTreeImpl* tree = nullptr; 58 LayerTreeImpl* tree = nullptr;
58 switch (which_tree) { 59 switch (which_tree) {
59 case ACTIVE_TREE: 60 case ACTIVE_TREE:
60 tree = host_impl_.active_tree(); 61 tree = host_impl_.active_tree();
61 break; 62 break;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 active_layer->DidDraw(nullptr); 160 active_layer->DidDraw(nullptr);
160 161
161 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material); 162 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material);
162 163
163 // Tiles are ready at correct scale, so should not set had_incomplete_tile. 164 // Tiles are ready at correct scale, so should not set had_incomplete_tile.
164 EXPECT_EQ(0, data.num_incomplete_tiles); 165 EXPECT_EQ(0, data.num_incomplete_tiles);
165 } 166 }
166 167
167 } // namespace 168 } // namespace
168 } // namespace cc 169 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/nine_patch_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698