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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/layers/picture_layer.h" | 10 #include "cc/layers/picture_layer.h" |
11 #include "cc/resources/recording_source.h" | 11 #include "cc/playback/recording_source.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 class FakePictureLayer : public PictureLayer { | 14 class FakePictureLayer : public PictureLayer { |
15 public: | 15 public: |
16 static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) { | 16 static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) { |
17 return make_scoped_refptr(new FakePictureLayer(client)); | 17 return make_scoped_refptr(new FakePictureLayer(client)); |
18 } | 18 } |
19 | 19 |
20 static scoped_refptr<FakePictureLayer> CreateWithRecordingSource( | 20 static scoped_refptr<FakePictureLayer> CreateWithRecordingSource( |
21 ContentLayerClient* client, | 21 ContentLayerClient* client, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 size_t update_count_; | 56 size_t update_count_; |
57 size_t push_properties_count_; | 57 size_t push_properties_count_; |
58 size_t output_surface_created_count_; | 58 size_t output_surface_created_count_; |
59 bool always_update_resources_; | 59 bool always_update_resources_; |
60 bool disable_lcd_text_; | 60 bool disable_lcd_text_; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace cc | 63 } // namespace cc |
64 | 64 |
65 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ | 65 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ |
OLD | NEW |