| 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" | |
| 12 #include "CCTiledLayerImpl.h" | 11 #include "CCTiledLayerImpl.h" |
| 13 #include "IntRect.h" | 12 #include "IntRect.h" |
| 14 #include "IntSize.h" | 13 #include "IntSize.h" |
| 15 #include "Region.h" | 14 #include "Region.h" |
| 16 #include "cc/layer_texture_updater.h" | 15 #include "cc/layer_texture_updater.h" |
| 17 #include "cc/texture_copier.h" | 16 #include "cc/texture_copier.h" |
| 17 #include "cc/texture_update_queue.h" |
| 18 #include "cc/texture_uploader.h" | 18 #include "cc/texture_uploader.h" |
| 19 #include "cc/tiled_layer.h" | 19 #include "cc/tiled_layer.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 { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou
nds = contentBounds; } | 119 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou
nds = contentBounds; } |
| 120 virtual cc::IntSize contentBounds() const OVERRIDE; | 120 virtual cc::IntSize contentBounds() const OVERRIDE; |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual ~FakeTiledLayerWithScaledBounds(); | 123 virtual ~FakeTiledLayerWithScaledBounds(); |
| 124 cc::IntSize m_forcedContentBounds; | 124 cc::IntSize m_forcedContentBounds; |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } | 127 } |
| 128 #endif // CCTiledLayerTestCommon_h | 128 #endif // CCTiledLayerTestCommon_h |
| OLD | NEW |