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> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "cc/layers/picture_layer.h" | 13 #include "cc/layers/picture_layer.h" |
14 #include "cc/playback/recording_source.h" | 14 #include "cc/layers/recording_source.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 class FakePictureLayer : public PictureLayer { | 17 class FakePictureLayer : public PictureLayer { |
18 public: | 18 public: |
19 static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) { | 19 static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) { |
20 return make_scoped_refptr(new FakePictureLayer(client)); | 20 return make_scoped_refptr(new FakePictureLayer(client)); |
21 } | 21 } |
22 | 22 |
23 static scoped_refptr<FakePictureLayer> CreateWithRecordingSource( | 23 static scoped_refptr<FakePictureLayer> CreateWithRecordingSource( |
24 ContentLayerClient* client, | 24 ContentLayerClient* client, |
(...skipping 25 matching lines...) Expand all Loading... |
50 | 50 |
51 int update_count_; | 51 int update_count_; |
52 bool always_update_resources_; | 52 bool always_update_resources_; |
53 | 53 |
54 bool force_unsuitable_for_gpu_rasterization_; | 54 bool force_unsuitable_for_gpu_rasterization_; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace cc | 57 } // namespace cc |
58 | 58 |
59 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ | 59 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ |
OLD | NEW |