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 18 matching lines...) Expand all Loading... |
29 false, | 29 false, |
30 false, | 30 false, |
31 &stats_instrumentation_), | 31 &stats_instrumentation_), |
32 pile_(new FakeInfinitePicturePileImpl()) { | 32 pile_(new FakeInfinitePicturePileImpl()) { |
33 } | 33 } |
34 | 34 |
35 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { | 35 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { |
36 } | 36 } |
37 | 37 |
38 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( | 38 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( |
39 PictureLayerTiling*, | 39 const PictureLayerTiling* tiling, |
40 gfx::Rect rect) { | 40 gfx::Rect rect) { |
41 return make_scoped_refptr(new Tile(&tile_manager_, | 41 return make_scoped_refptr(new Tile(&tile_manager_, |
42 pile_.get(), | 42 pile_.get(), |
43 tile_size_, | 43 tile_size_, |
44 rect, | 44 rect, |
45 gfx::Rect(), | 45 gfx::Rect(), |
46 1, | 46 1, |
47 0)); | 47 0)); |
48 } | 48 } |
49 | 49 |
50 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) { | 50 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) { |
51 tile_size_ = tile_size; | 51 tile_size_ = tile_size; |
52 } | 52 } |
53 | 53 |
54 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( | 54 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( |
55 gfx::Size /* content_bounds */) { | 55 gfx::Size /* content_bounds */) { |
56 return tile_size_; | 56 return tile_size_; |
57 } | 57 } |
58 | 58 |
59 const Region* FakePictureLayerTilingClient::GetInvalidation() { | 59 const Region* FakePictureLayerTilingClient::GetInvalidation() { |
60 return NULL; | 60 return NULL; |
61 } | 61 } |
62 | 62 |
63 const PictureLayerTiling* FakePictureLayerTilingClient::GetTwinTiling( | 63 const PictureLayerTiling* FakePictureLayerTilingClient::GetTwinTiling( |
64 const PictureLayerTiling* tiling) { | 64 const PictureLayerTiling* tiling) { |
65 return NULL; | 65 return NULL; |
66 } | 66 } |
67 | 67 |
68 } // namespace cc | 68 } // namespace cc |
OLD | NEW |