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

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

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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/tiled_layer_impl.cc ('k') | cc/output/bsp_tree.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/tiled_layer.h" 5 #include "cc/layers/tiled_layer.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 public: 80 public:
81 TiledLayerTest() 81 TiledLayerTest()
82 : proxy_(nullptr), 82 : proxy_(nullptr),
83 output_surface_(FakeOutputSurface::Create3d()), 83 output_surface_(FakeOutputSurface::Create3d()),
84 queue_(make_scoped_ptr(new ResourceUpdateQueue)), 84 queue_(make_scoped_ptr(new ResourceUpdateQueue)),
85 impl_thread_("ImplThread"), 85 impl_thread_("ImplThread"),
86 occlusion_(nullptr) { 86 occlusion_(nullptr) {
87 settings_.max_partial_texture_updates = std::numeric_limits<size_t>::max(); 87 settings_.max_partial_texture_updates = std::numeric_limits<size_t>::max();
88 settings_.layer_transforms_should_scale_layer_contents = true; 88 settings_.layer_transforms_should_scale_layer_contents = true;
89 settings_.verify_property_trees = true; 89 settings_.verify_property_trees = true;
90 settings_.impl_side_painting = false;
90 } 91 }
91 92
92 void SetUp() override { 93 void SetUp() override {
93 impl_thread_.Start(); 94 impl_thread_.Start();
94 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 95 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
95 layer_tree_host_ = LayerTreeHost::CreateThreaded( 96 layer_tree_host_ = LayerTreeHost::CreateThreaded(
96 &synchonous_output_surface_client_, shared_bitmap_manager_.get(), 97 &synchonous_output_surface_client_, shared_bitmap_manager_.get(),
97 nullptr, settings_, base::MessageLoopProxy::current(), 98 nullptr, settings_, base::MessageLoopProxy::current(),
98 impl_thread_.message_loop_proxy(), nullptr); 99 impl_thread_.message_loop_proxy(), nullptr);
99 synchonous_output_surface_client_.SetLayerTreeHost(layer_tree_host_.get()); 100 synchonous_output_surface_client_.SetLayerTreeHost(layer_tree_host_.get());
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 1747
1747 // Rounding leads to an extra pixel. 1748 // Rounding leads to an extra pixel.
1748 gfx::Rect expanded_layer_rect(layer_rect); 1749 gfx::Rect expanded_layer_rect(layer_rect);
1749 expanded_layer_rect.set_height(32); 1750 expanded_layer_rect.set_height(32);
1750 EXPECT_EQ(expanded_layer_rect, 1751 EXPECT_EQ(expanded_layer_rect,
1751 layer->tracking_layer_painter()->PaintedRect()); 1752 layer->tracking_layer_painter()->PaintedRect());
1752 } 1753 }
1753 1754
1754 } // namespace 1755 } // namespace
1755 } // namespace cc 1756 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl.cc ('k') | cc/output/bsp_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698