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/base/region.h" | 8 #include "cc/base/region.h" |
9 #include "cc/layers/tiled_layer.h" | 9 #include "cc/layers/tiled_layer.h" |
10 #include "cc/layers/tiled_layer_impl.h" | 10 #include "cc/layers/tiled_layer_impl.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class FakeLayerUpdater : public LayerUpdater { | 22 class FakeLayerUpdater : public LayerUpdater { |
23 public: | 23 public: |
24 class Resource : public LayerUpdater::Resource { | 24 class Resource : public LayerUpdater::Resource { |
25 public: | 25 public: |
26 Resource(FakeLayerUpdater* updater, | 26 Resource(FakeLayerUpdater* updater, |
27 scoped_ptr<PrioritizedResource> resource); | 27 scoped_ptr<PrioritizedResource> resource); |
28 virtual ~Resource(); | 28 virtual ~Resource(); |
29 | 29 |
30 virtual void Update(ResourceUpdateQueue* queue, | 30 virtual void Update(ResourceUpdateQueue* queue, |
31 const gfx::Rect& source_rect, | 31 const gfx::Rect& source_rect, |
32 gfx::Vector2d dest_offset, | 32 const gfx::Vector2d& dest_offset, |
33 bool partial_update) OVERRIDE; | 33 bool partial_update) OVERRIDE; |
34 | 34 |
35 private: | 35 private: |
36 FakeLayerUpdater* layer_; | 36 FakeLayerUpdater* layer_; |
37 SkBitmap bitmap_; | 37 SkBitmap bitmap_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(Resource); | 39 DISALLOW_COPY_AND_ASSIGN(Resource); |
40 }; | 40 }; |
41 | 41 |
42 FakeLayerUpdater(); | 42 FakeLayerUpdater(); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual ~FakeTiledLayerWithScaledBounds(); | 151 virtual ~FakeTiledLayerWithScaledBounds(); |
152 gfx::Size forced_content_bounds_; | 152 gfx::Size forced_content_bounds_; |
153 | 153 |
154 private: | 154 private: |
155 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); | 155 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace cc | 158 } // namespace cc |
159 | 159 |
160 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ | 160 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ |
OLD | NEW |