Chromium Code Reviews| 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" |
| 11 #include "cc/layer_updater.h" | 11 #include "cc/layer_updater.h" |
| 12 #include "cc/prioritized_texture.h" | 12 #include "cc/prioritized_texture.h" |
| 13 #include "cc/resource_provider.h" | 13 #include "cc/resource_provider.h" |
| 14 #include "cc/texture_copier.h" | 14 #include "cc/texture_copier.h" |
| 15 #include "cc/texture_update_queue.h" | 15 #include "cc/resource_update_queue.h" |
|
enne (OOO)
2012/10/25 20:54:30
Sorting.
reveman
2012/10/25 21:07:45
Done.
| |
| 16 #include "cc/texture_uploader.h" | 16 #include "cc/texture_uploader.h" |
| 17 #include "cc/tiled_layer.h" | 17 #include "cc/tiled_layer.h" |
| 18 #include "cc/tiled_layer_impl.h" | 18 #include "cc/tiled_layer_impl.h" |
| 19 | 19 |
| 20 namespace WebKitTests { | 20 namespace WebKitTests { |
| 21 | 21 |
| 22 class FakeTiledLayer; | 22 class FakeTiledLayer; |
| 23 | 23 |
| 24 class FakeLayerUpdater : public cc::LayerUpdater { | 24 class FakeLayerUpdater : public cc::LayerUpdater { |
| 25 public: | 25 public: |
| 26 class Resource : public cc::LayerUpdater::Resource { | 26 class Resource : public cc::LayerUpdater::Resource { |
| 27 public: | 27 public: |
| 28 Resource(FakeLayerUpdater*, scoped_ptr<cc::PrioritizedTexture>); | 28 Resource(FakeLayerUpdater*, scoped_ptr<cc::PrioritizedTexture>); |
| 29 virtual ~Resource(); | 29 virtual ~Resource(); |
| 30 | 30 |
| 31 virtual void update(cc::TextureUpdateQueue&, const cc::IntRect&, const c c::IntSize&, bool, cc::RenderingStats&) OVERRIDE; | 31 virtual void update(cc::ResourceUpdateQueue&, const cc::IntRect&, const cc::IntSize&, bool, cc::RenderingStats&) OVERRIDE; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 FakeLayerUpdater* m_layer; | 34 FakeLayerUpdater* m_layer; |
| 35 SkBitmap m_bitmap; | 35 SkBitmap m_bitmap; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 FakeLayerUpdater(); | 38 FakeLayerUpdater(); |
| 39 | 39 |
| 40 virtual scoped_ptr<cc::LayerUpdater::Resource> createResource(cc::Prioritize dTextureManager*) OVERRIDE; | 40 virtual scoped_ptr<cc::LayerUpdater::Resource> createResource(cc::Prioritize dTextureManager*) OVERRIDE; |
| 41 | 41 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 119 |
| 120 protected: | 120 protected: |
| 121 virtual ~FakeTiledLayerWithScaledBounds(); | 121 virtual ~FakeTiledLayerWithScaledBounds(); |
| 122 cc::IntSize m_forcedContentBounds; | 122 cc::IntSize m_forcedContentBounds; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } | 125 } |
| 126 #endif // CCTiledLayerTestCommon_h | 126 #endif // CCTiledLayerTestCommon_h |
| OLD | NEW |