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