| 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 "CCGraphicsContext.h" | 8 #include "CCGraphicsContext.h" |
| 9 #include "CCPrioritizedTexture.h" | 9 #include "CCPrioritizedTexture.h" |
| 10 #include "CCResourceProvider.h" | 10 #include "CCResourceProvider.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 cc::IntRect m_opaquePaintRect; | 74 cc::IntRect m_opaquePaintRect; |
| 75 RefPtr<FakeTiledLayerChromium> m_layer; | 75 RefPtr<FakeTiledLayerChromium> m_layer; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 class FakeCCTiledLayerImpl : public cc::CCTiledLayerImpl { | 78 class FakeCCTiledLayerImpl : public cc::CCTiledLayerImpl { |
| 79 public: | 79 public: |
| 80 explicit FakeCCTiledLayerImpl(int id); | 80 explicit FakeCCTiledLayerImpl(int id); |
| 81 virtual ~FakeCCTiledLayerImpl(); | 81 virtual ~FakeCCTiledLayerImpl(); |
| 82 | 82 |
| 83 using cc::CCTiledLayerImpl::hasTileAt; | 83 using cc::CCTiledLayerImpl::hasTileAt; |
| 84 using cc::CCTiledLayerImpl::hasTextureIdForTileAt; | 84 using cc::CCTiledLayerImpl::hasResourceIdForTileAt; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 class FakeTiledLayerChromium : public cc::TiledLayerChromium { | 87 class FakeTiledLayerChromium : public cc::TiledLayerChromium { |
| 88 public: | 88 public: |
| 89 explicit FakeTiledLayerChromium(cc::CCPrioritizedTextureManager*); | 89 explicit FakeTiledLayerChromium(cc::CCPrioritizedTextureManager*); |
| 90 virtual ~FakeTiledLayerChromium(); | 90 virtual ~FakeTiledLayerChromium(); |
| 91 | 91 |
| 92 static cc::IntSize tileSize() { return cc::IntSize(100, 100); } | 92 static cc::IntSize tileSize() { return cc::IntSize(100, 100); } |
| 93 | 93 |
| 94 using cc::TiledLayerChromium::invalidateContentRect; | 94 using cc::TiledLayerChromium::invalidateContentRect; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 public: | 132 public: |
| 133 virtual bool isBusy() OVERRIDE; | 133 virtual bool isBusy() OVERRIDE; |
| 134 virtual double estimatedTexturesPerSecond() OVERRIDE; | 134 virtual double estimatedTexturesPerSecond() OVERRIDE; |
| 135 virtual void beginUploads() OVERRIDE { } | 135 virtual void beginUploads() OVERRIDE { } |
| 136 virtual void endUploads() OVERRIDE { } | 136 virtual void endUploads() OVERRIDE { } |
| 137 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR
IDE; | 137 virtual void uploadTexture(cc::CCResourceProvider*, Parameters upload) OVERR
IDE; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } | 140 } |
| 141 #endif // CCTiledLayerTestCommon_h | 141 #endif // CCTiledLayerTestCommon_h |
| OLD | NEW |