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 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
7 | 7 |
8 #include "cc/resources/picture_layer_tiling.h" | 8 #include "cc/resources/picture_layer_tiling.h" |
9 #include "cc/resources/picture_pile_impl.h" | 9 #include "cc/resources/picture_pile_impl.h" |
10 #include "cc/resources/tile.h" | 10 #include "cc/resources/tile.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void set_skewport_extrapolation_limit_in_content_pixels(int limit) { | 52 void set_skewport_extrapolation_limit_in_content_pixels(int limit) { |
53 skewport_extrapolation_limit_in_content_pixels_ = limit; | 53 skewport_extrapolation_limit_in_content_pixels_ = limit; |
54 } | 54 } |
55 | 55 |
56 TileManager* tile_manager() const { | 56 TileManager* tile_manager() const { |
57 return tile_manager_.get(); | 57 return tile_manager_.get(); |
58 } | 58 } |
59 | 59 |
60 protected: | 60 protected: |
61 FakeTileManagerClient tile_manager_client_; | 61 FakeTileManagerClient tile_manager_client_; |
| 62 scoped_ptr<ResourcePool> resource_pool_; |
62 scoped_ptr<TileManager> tile_manager_; | 63 scoped_ptr<TileManager> tile_manager_; |
63 scoped_refptr<PicturePileImpl> pile_; | 64 scoped_refptr<PicturePileImpl> pile_; |
64 gfx::Size tile_size_; | 65 gfx::Size tile_size_; |
65 PictureLayerTiling* twin_tiling_; | 66 PictureLayerTiling* twin_tiling_; |
66 gfx::Rect text_rect_; | 67 gfx::Rect text_rect_; |
67 bool allow_create_tile_; | 68 bool allow_create_tile_; |
68 Region invalidation_; | 69 Region invalidation_; |
69 size_t max_tiles_for_interest_area_; | 70 size_t max_tiles_for_interest_area_; |
70 float skewport_target_time_in_seconds_; | 71 float skewport_target_time_in_seconds_; |
71 int skewport_extrapolation_limit_in_content_pixels_; | 72 int skewport_extrapolation_limit_in_content_pixels_; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace cc | 75 } // namespace cc |
75 | 76 |
76 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 77 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
OLD | NEW |