OLD | NEW |
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 CHECK(output_surface_->BindToClient(&output_surface_client_)); | 122 CHECK(output_surface_->BindToClient(&output_surface_client_)); |
123 | 123 |
124 DebugScopedSetImplThreadAndMainThreadBlocked | 124 DebugScopedSetImplThreadAndMainThreadBlocked |
125 impl_thread_and_main_thread_blocked(proxy_); | 125 impl_thread_and_main_thread_blocked(proxy_); |
126 resource_provider_ = ResourceProvider::Create(output_surface_.get(), | 126 resource_provider_ = ResourceProvider::Create(output_surface_.get(), |
127 shared_bitmap_manager_.get(), | 127 shared_bitmap_manager_.get(), |
128 nullptr, | 128 nullptr, |
129 nullptr, | 129 nullptr, |
130 0, | 130 0, |
131 false, | 131 false, |
132 1, | 132 1); |
133 false); | |
134 host_impl_ = make_scoped_ptr( | 133 host_impl_ = make_scoped_ptr( |
135 new FakeLayerTreeHostImpl(proxy_, shared_bitmap_manager_.get())); | 134 new FakeLayerTreeHostImpl(proxy_, shared_bitmap_manager_.get())); |
136 } | 135 } |
137 | 136 |
138 virtual ~TiledLayerTest() { | 137 virtual ~TiledLayerTest() { |
139 ResourceManagerClearAllMemory(resource_manager_.get(), | 138 ResourceManagerClearAllMemory(resource_manager_.get(), |
140 resource_provider_.get()); | 139 resource_provider_.get()); |
141 | 140 |
142 DebugScopedSetImplThreadAndMainThreadBlocked | 141 DebugScopedSetImplThreadAndMainThreadBlocked |
143 impl_thread_and_main_thread_blocked(proxy_); | 142 impl_thread_and_main_thread_blocked(proxy_); |
(...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 | 1757 |
1759 // Rounding leads to an extra pixel. | 1758 // Rounding leads to an extra pixel. |
1760 gfx::Rect expanded_layer_rect(layer_rect); | 1759 gfx::Rect expanded_layer_rect(layer_rect); |
1761 expanded_layer_rect.set_height(32); | 1760 expanded_layer_rect.set_height(32); |
1762 EXPECT_RECT_EQ(expanded_layer_rect, | 1761 EXPECT_RECT_EQ(expanded_layer_rect, |
1763 layer->tracking_layer_painter()->PaintedRect()); | 1762 layer->tracking_layer_painter()->PaintedRect()); |
1764 } | 1763 } |
1765 | 1764 |
1766 } // namespace | 1765 } // namespace |
1767 } // namespace cc | 1766 } // namespace cc |
OLD | NEW |