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 CCTiledLayerTestCommon_h | 5 #ifndef CCTiledLayerTestCommon_h |
6 #define CCTiledLayerTestCommon_h | 6 #define CCTiledLayerTestCommon_h |
7 | 7 |
8 #include "IntRect.h" | 8 #include "IntRect.h" |
9 #include "IntSize.h" | 9 #include "IntSize.h" |
10 #include "Region.h" | 10 #include "Region.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 cc::PrioritizedTextureManager* m_textureManager; | 109 cc::PrioritizedTextureManager* m_textureManager; |
110 cc::FloatRect m_lastNeedsDisplayRect; | 110 cc::FloatRect m_lastNeedsDisplayRect; |
111 }; | 111 }; |
112 | 112 |
113 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer { | 113 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer { |
114 public: | 114 public: |
115 explicit FakeTiledLayerWithScaledBounds(cc::PrioritizedTextureManager*); | 115 explicit FakeTiledLayerWithScaledBounds(cc::PrioritizedTextureManager*); |
116 | 116 |
117 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou
nds = contentBounds; } | 117 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou
nds = contentBounds; } |
118 virtual cc::IntSize contentBounds() const OVERRIDE; | 118 virtual cc::IntSize contentBounds() const OVERRIDE; |
| 119 virtual float contentsScaleX() const OVERRIDE; |
| 120 virtual float contentsScaleY() const OVERRIDE; |
| 121 virtual void setContentsScale(float) OVERRIDE; |
119 | 122 |
120 protected: | 123 protected: |
121 virtual ~FakeTiledLayerWithScaledBounds(); | 124 virtual ~FakeTiledLayerWithScaledBounds(); |
122 cc::IntSize m_forcedContentBounds; | 125 cc::IntSize m_forcedContentBounds; |
123 }; | 126 }; |
124 | 127 |
125 } | 128 } |
126 #endif // CCTiledLayerTestCommon_h | 129 #endif // CCTiledLayerTestCommon_h |
OLD | NEW |