OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/test/fake_picture_layer_tiling_client.h" | 5 #include "cc/test/fake_picture_layer_tiling_client.h" |
6 | 6 |
| 7 #include <limits> |
| 8 |
7 namespace cc { | 9 namespace cc { |
8 | 10 |
9 class FakeInfinitePicturePileImpl : public PicturePileImpl { | 11 class FakeInfinitePicturePileImpl : public PicturePileImpl { |
10 public: | 12 public: |
11 FakeInfinitePicturePileImpl() | 13 FakeInfinitePicturePileImpl() |
12 : PicturePileImpl(false) { | 14 : PicturePileImpl(false) { |
13 gfx::Size size(std::numeric_limits<int>::max(), | 15 gfx::Size size(std::numeric_limits<int>::max(), |
14 std::numeric_limits<int>::max()); | 16 std::numeric_limits<int>::max()); |
15 Resize(size); | 17 Resize(size); |
16 recorded_region_ = Region(gfx::Rect(size)); | 18 recorded_region_ = Region(gfx::Rect(size)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 tile_size_ = tile_size; | 53 tile_size_ = tile_size; |
52 } | 54 } |
53 | 55 |
54 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( | 56 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( |
55 gfx::Size /* current_tile_size */, | 57 gfx::Size /* current_tile_size */, |
56 gfx::Size /* content_bounds */) { | 58 gfx::Size /* content_bounds */) { |
57 return tile_size_; | 59 return tile_size_; |
58 } | 60 } |
59 | 61 |
60 } // namespace cc | 62 } // namespace cc |
OLD | NEW |