| 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/layer_updater.h" | 8 #include "cc/layer_updater.h" |
| 9 #include "cc/prioritized_resource.h" | 9 #include "cc/prioritized_resource.h" |
| 10 #include "cc/region.h" | 10 #include "cc/region.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 using cc::TiledLayer::invalidateContentRect; | 87 using cc::TiledLayer::invalidateContentRect; |
| 88 using cc::TiledLayer::needsIdlePaint; | 88 using cc::TiledLayer::needsIdlePaint; |
| 89 using cc::TiledLayer::skipsDraw; | 89 using cc::TiledLayer::skipsDraw; |
| 90 using cc::TiledLayer::numPaintedTiles; | 90 using cc::TiledLayer::numPaintedTiles; |
| 91 using cc::TiledLayer::idlePaintRect; | 91 using cc::TiledLayer::idlePaintRect; |
| 92 | 92 |
| 93 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; | 93 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; |
| 94 const gfx::RectF& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRe
ct; } | 94 const gfx::RectF& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRe
ct; } |
| 95 | 95 |
| 96 virtual void setCanUseLCDText(bool) OVERRIDE; |
| 97 |
| 96 virtual void setTexturePriorities(const cc::PriorityCalculator&) OVERRIDE; | 98 virtual void setTexturePriorities(const cc::PriorityCalculator&) OVERRIDE; |
| 97 | 99 |
| 98 virtual cc::PrioritizedResourceManager* resourceManager() const OVERRIDE; | 100 virtual cc::PrioritizedResourceManager* resourceManager() const OVERRIDE; |
| 99 FakeLayerUpdater* fakeLayerUpdater() { return m_fakeUpdater.get(); } | 101 FakeLayerUpdater* fakeLayerUpdater() { return m_fakeUpdater.get(); } |
| 100 gfx::RectF updateRect() { return m_updateRect; } | 102 gfx::RectF updateRect() { return m_updateRect; } |
| 101 | 103 |
| 102 protected: | 104 protected: |
| 103 virtual cc::LayerUpdater* updater() const OVERRIDE; | 105 virtual cc::LayerUpdater* updater() const OVERRIDE; |
| 104 virtual void createUpdaterIfNeeded() OVERRIDE { } | 106 virtual void createUpdaterIfNeeded() OVERRIDE { } |
| 105 virtual ~FakeTiledLayer(); | 107 virtual ~FakeTiledLayer(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 120 virtual float contentsScaleY() const OVERRIDE; | 122 virtual float contentsScaleY() const OVERRIDE; |
| 121 virtual void setContentsScale(float) OVERRIDE; | 123 virtual void setContentsScale(float) OVERRIDE; |
| 122 | 124 |
| 123 protected: | 125 protected: |
| 124 virtual ~FakeTiledLayerWithScaledBounds(); | 126 virtual ~FakeTiledLayerWithScaledBounds(); |
| 125 gfx::Size m_forcedContentBounds; | 127 gfx::Size m_forcedContentBounds; |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } | 130 } |
| 129 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ | 131 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
| OLD | NEW |