| 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_TILED_LAYER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
| 6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_ | 6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include "cc/base/region.h" | 8 #include "cc/base/region.h" |
| 9 #include "cc/layers/tiled_layer.h" | 9 #include "cc/layers/tiled_layer.h" |
| 10 #include "cc/layers/tiled_layer_impl.h" | 10 #include "cc/layers/tiled_layer_impl.h" |
| 11 #include "cc/resources/layer_updater.h" | 11 #include "cc/resources/layer_updater.h" |
| 12 #include "cc/resources/prioritized_resource.h" | 12 #include "cc/resources/prioritized_resource.h" |
| 13 #include "cc/resources/resource_provider.h" | 13 #include "cc/resources/resource_provider.h" |
| 14 #include "cc/resources/resource_update_queue.h" | 14 #include "cc/resources/resource_update_queue.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/geometry/size.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 | 19 |
| 20 class FakeTiledLayer; | 20 class FakeTiledLayer; |
| 21 | 21 |
| 22 class FakeLayerUpdater : public LayerUpdater { | 22 class FakeLayerUpdater : public LayerUpdater { |
| 23 public: | 23 public: |
| 24 class Resource : public LayerUpdater::Resource { | 24 class Resource : public LayerUpdater::Resource { |
| 25 public: | 25 public: |
| 26 Resource(FakeLayerUpdater* updater, | 26 Resource(FakeLayerUpdater* updater, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 ~FakeTiledLayerWithScaledBounds() override; | 147 ~FakeTiledLayerWithScaledBounds() override; |
| 148 gfx::Size forced_content_bounds_; | 148 gfx::Size forced_content_bounds_; |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); | 151 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace cc | 154 } // namespace cc |
| 155 | 155 |
| 156 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ | 156 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
| OLD | NEW |