| 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" |
| 11 #include "CCTextureUpdateQueue.h" | 11 #include "CCTextureUpdateQueue.h" |
| 12 #include "CCTiledLayerImpl.h" | 12 #include "CCTiledLayerImpl.h" |
| 13 #include "IntRect.h" | 13 #include "IntRect.h" |
| 14 #include "IntSize.h" | 14 #include "IntSize.h" |
| 15 #include "LayerTextureUpdater.h" | 15 #include "LayerTextureUpdater.h" |
| 16 #include "Region.h" | 16 #include "Region.h" |
| 17 #include "TextureCopier.h" | 17 #include "TextureCopier.h" |
| 18 #include "TextureUploader.h" | 18 #include "TextureUploader.h" |
| 19 #include "TiledLayerChromium.h" | 19 #include "TiledLayerChromium.h" |
| 20 | 20 |
| 21 namespace WebKitTests { | 21 namespace WebKitTests { |
| 22 | 22 |
| 23 class FakeTiledLayerChromium; | 23 class FakeTiledLayerChromium; |
| 24 | 24 |
| 25 class FakeLayerTextureUpdater : public cc::LayerTextureUpdater { | 25 class FakeLayerTextureUpdater : public cc::LayerTextureUpdater { |
| 26 public: | 26 public: |
| 27 class Texture : public cc::LayerTextureUpdater::Texture { | 27 class Texture : public cc::LayerTextureUpdater::Texture { |
| 28 public: | 28 public: |
| 29 Texture(FakeLayerTextureUpdater*, PassOwnPtr<cc::CCPrioritizedTexture>); | 29 Texture(FakeLayerTextureUpdater*, scoped_ptr<cc::CCPrioritizedTexture>); |
| 30 virtual ~Texture(); | 30 virtual ~Texture(); |
| 31 | 31 |
| 32 virtual void updateRect(cc::CCResourceProvider* , const cc::IntRect&, co
nst cc::IntSize&) OVERRIDE; | 32 virtual void updateRect(cc::CCResourceProvider* , const cc::IntRect&, co
nst cc::IntSize&) OVERRIDE; |
| 33 virtual void prepareRect(const cc::IntRect&, cc::CCRenderingStats&) OVER
RIDE; | 33 virtual void prepareRect(const cc::IntRect&, cc::CCRenderingStats&) OVER
RIDE; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 FakeLayerTextureUpdater* m_layer; | 36 FakeLayerTextureUpdater* m_layer; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 FakeLayerTextureUpdater(); | 39 FakeLayerTextureUpdater(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 class FakeTextureUploader : public cc::TextureUploader { | 132 class FakeTextureUploader : public cc::TextureUploader { |
| 133 public: | 133 public: |
| 134 virtual size_t numBlockingUploads() OVERRIDE; | 134 virtual size_t numBlockingUploads() OVERRIDE; |
| 135 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; | 135 virtual void markPendingUploadsAsNonBlocking() OVERRIDE; |
| 136 virtual double estimatedTexturesPerSecond() OVERRIDE; | 136 virtual double estimatedTexturesPerSecond() OVERRIDE; |
| 137 virtual void uploadTexture(cc::CCResourceProvider*, Parameters) OVERRIDE; | 137 virtual void uploadTexture(cc::CCResourceProvider*, Parameters) OVERRIDE; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } | 140 } |
| 141 #endif // CCTiledLayerTestCommon_h | 141 #endif // CCTiledLayerTestCommon_h |
| OLD | NEW |