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_FAKE_PICTURE_LAYER_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_H_ |
6 #define CC_TEST_FAKE_PICTURE_LAYER_H_ | 6 #define CC_TEST_FAKE_PICTURE_LAYER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "cc/layers/picture_layer.h" | 12 #include "cc/layers/picture_layer.h" |
11 #include "cc/playback/display_list_recording_source.h" | 13 #include "cc/playback/display_list_recording_source.h" |
12 | 14 |
13 namespace cc { | 15 namespace cc { |
14 class FakePictureLayer : public PictureLayer { | 16 class FakePictureLayer : public PictureLayer { |
15 public: | 17 public: |
16 static scoped_refptr<FakePictureLayer> Create(const LayerSettings& settings, | 18 static scoped_refptr<FakePictureLayer> Create(const LayerSettings& settings, |
17 ContentLayerClient* client) { | 19 ContentLayerClient* client) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 ~FakePictureLayer() override; | 52 ~FakePictureLayer() override; |
51 | 53 |
52 int update_count_; | 54 int update_count_; |
53 size_t push_properties_count_; | 55 size_t push_properties_count_; |
54 bool always_update_resources_; | 56 bool always_update_resources_; |
55 }; | 57 }; |
56 | 58 |
57 } // namespace cc | 59 } // namespace cc |
58 | 60 |
59 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ | 61 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ |
OLD | NEW |