| OLD | NEW |
| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "cc/resources/managed_tile_state.h" | 8 #include "cc/resources/managed_tile_state.h" |
| 9 #include "cc/resources/prioritized_tile_set.h" | 9 #include "cc/resources/prioritized_tile_set.h" |
| 10 #include "cc/resources/tile.h" | 10 #include "cc/resources/tile.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 scoped_refptr<Tile> CreateTile() { | 70 scoped_refptr<Tile> CreateTile() { |
| 71 return tile_manager_->CreateTile(picture_pile_.get(), | 71 return tile_manager_->CreateTile(picture_pile_.get(), |
| 72 settings_.default_tile_size, | 72 settings_.default_tile_size, |
| 73 gfx::Rect(), | 73 gfx::Rect(), |
| 74 gfx::Rect(), | 74 gfx::Rect(), |
| 75 1.0, | 75 1.0, |
| 76 0, | 76 0, |
| 77 0, | 77 0, |
| 78 Tile::USE_LCD_TEXT); | 78 0); |
| 79 } | 79 } |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 LayerTreeSettings settings_; | 82 LayerTreeSettings settings_; |
| 83 FakeOutputSurfaceClient output_surface_client_; | 83 FakeOutputSurfaceClient output_surface_client_; |
| 84 scoped_ptr<FakeOutputSurface> output_surface_; | 84 scoped_ptr<FakeOutputSurface> output_surface_; |
| 85 scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; | 85 scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; |
| 86 scoped_ptr<ResourceProvider> resource_provider_; | 86 scoped_ptr<ResourceProvider> resource_provider_; |
| 87 scoped_ptr<ResourcePool> resource_pool_; | 87 scoped_ptr<ResourcePool> resource_pool_; |
| 88 FakeTileManagerClient tile_manager_client_; | 88 FakeTileManagerClient tile_manager_client_; |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 723 |
| 724 set.Clear(); | 724 set.Clear(); |
| 725 | 725 |
| 726 PrioritizedTileSet::Iterator empty_it(&set, true); | 726 PrioritizedTileSet::Iterator empty_it(&set, true); |
| 727 EXPECT_FALSE(empty_it); | 727 EXPECT_FALSE(empty_it); |
| 728 } | 728 } |
| 729 | 729 |
| 730 } // namespace | 730 } // namespace |
| 731 } // namespace cc | 731 } // namespace cc |
| 732 | 732 |
| OLD | NEW |