| 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" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return last_needs_display_rect_; | 112 return last_needs_display_rect_; |
| 113 } | 113 } |
| 114 | 114 |
| 115 virtual void SetTexturePriorities( | 115 virtual void SetTexturePriorities( |
| 116 const PriorityCalculator& priority_calculator) OVERRIDE; | 116 const PriorityCalculator& priority_calculator) OVERRIDE; |
| 117 | 117 |
| 118 virtual PrioritizedResourceManager* ResourceManager() const OVERRIDE; | 118 virtual PrioritizedResourceManager* ResourceManager() const OVERRIDE; |
| 119 FakeLayerUpdater* fake_layer_updater() { return fake_updater_.get(); } | 119 FakeLayerUpdater* fake_layer_updater() { return fake_updater_.get(); } |
| 120 gfx::RectF update_rect() { return update_rect_; } | 120 gfx::RectF update_rect() { return update_rect_; } |
| 121 | 121 |
| 122 // Simulate calcDrawProperties. | 122 // Simulate CalcDrawProperties. |
| 123 void UpdateContentsScale(float ideal_contents_scale); | 123 void UpdateContentsScale(float ideal_contents_scale); |
| 124 | 124 |
| 125 protected: | 125 protected: |
| 126 virtual LayerUpdater* Updater() const OVERRIDE; | 126 virtual LayerUpdater* Updater() const OVERRIDE; |
| 127 virtual void CreateUpdaterIfNeeded() OVERRIDE {} | 127 virtual void CreateUpdaterIfNeeded() OVERRIDE {} |
| 128 virtual ~FakeTiledLayer(); | 128 virtual ~FakeTiledLayer(); |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 scoped_refptr<FakeLayerUpdater> fake_updater_; | 131 scoped_refptr<FakeLayerUpdater> fake_updater_; |
| 132 PrioritizedResourceManager* resource_manager_; | 132 PrioritizedResourceManager* resource_manager_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 150 protected: | 150 protected: |
| 151 virtual ~FakeTiledLayerWithScaledBounds(); | 151 virtual ~FakeTiledLayerWithScaledBounds(); |
| 152 gfx::Size forced_content_bounds_; | 152 gfx::Size forced_content_bounds_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); | 154 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace cc | 157 } // namespace cc |
| 158 | 158 |
| 159 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ | 159 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
| OLD | NEW |