| 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> | 7 #include <limits> |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 protected: | 21 protected: |
| 22 virtual ~FakeInfinitePicturePileImpl() {} | 22 virtual ~FakeInfinitePicturePileImpl() {} |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 FakePictureLayerTilingClient::FakePictureLayerTilingClient() | 25 FakePictureLayerTilingClient::FakePictureLayerTilingClient() |
| 26 : tile_manager_(&tile_manager_client_, | 26 : tile_manager_(&tile_manager_client_, |
| 27 NULL, | 27 NULL, |
| 28 1, | 28 1, |
| 29 false, | 29 false, |
| 30 false, | 30 false, |
| 31 false, | |
| 32 &stats_instrumentation_), | 31 &stats_instrumentation_), |
| 33 pile_(new FakeInfinitePicturePileImpl()) { | 32 pile_(new FakeInfinitePicturePileImpl()) { |
| 34 } | 33 } |
| 35 | 34 |
| 36 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { | 35 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { |
| 37 } | 36 } |
| 38 | 37 |
| 39 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( | 38 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( |
| 40 PictureLayerTiling*, | 39 PictureLayerTiling*, |
| 41 gfx::Rect rect) { | 40 gfx::Rect rect) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 52 tile_size_ = tile_size; | 51 tile_size_ = tile_size; |
| 53 } | 52 } |
| 54 | 53 |
| 55 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( | 54 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( |
| 56 gfx::Size /* current_tile_size */, | 55 gfx::Size /* current_tile_size */, |
| 57 gfx::Size /* content_bounds */) { | 56 gfx::Size /* content_bounds */) { |
| 58 return tile_size_; | 57 return tile_size_; |
| 59 } | 58 } |
| 60 | 59 |
| 61 } // namespace cc | 60 } // namespace cc |
| OLD | NEW |