OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "cc/test/fake_picture_layer_impl.h" | 5 #include "cc/test/fake_picture_layer_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include "cc/resources/tile.h" | 8 #include "cc/resources/tile.h" |
9 #include "cc/trees/layer_tree_impl.h" | 9 #include "cc/trees/layer_tree_impl.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 : PictureLayerImpl(tree_impl, id), | 43 : PictureLayerImpl(tree_impl, id), |
44 append_quads_count_(0), | 44 append_quads_count_(0), |
45 did_become_active_call_count_(0), | 45 did_become_active_call_count_(0), |
46 has_valid_tile_priorities_(false), | 46 has_valid_tile_priorities_(false), |
47 use_set_valid_tile_priorities_flag_(false), | 47 use_set_valid_tile_priorities_flag_(false), |
48 release_resources_count_(0) { | 48 release_resources_count_(0) { |
49 } | 49 } |
50 | 50 |
51 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl( | 51 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl( |
52 LayerTreeImpl* tree_impl) { | 52 LayerTreeImpl* tree_impl) { |
53 return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id())); | 53 return make_scoped_ptr( |
| 54 new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>(); |
54 } | 55 } |
55 | 56 |
56 void FakePictureLayerImpl::AppendQuads( | 57 void FakePictureLayerImpl::AppendQuads( |
57 RenderPass* render_pass, | 58 RenderPass* render_pass, |
58 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 59 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
59 AppendQuadsData* append_quads_data) { | 60 AppendQuadsData* append_quads_data) { |
60 PictureLayerImpl::AppendQuads( | 61 PictureLayerImpl::AppendQuads( |
61 render_pass, occlusion_tracker, append_quads_data); | 62 render_pass, occlusion_tracker, append_quads_data); |
62 ++append_quads_count_; | 63 ++append_quads_count_; |
63 } | 64 } |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 ? has_valid_tile_priorities_ | 181 ? has_valid_tile_priorities_ |
181 : PictureLayerImpl::HasValidTilePriorities(); | 182 : PictureLayerImpl::HasValidTilePriorities(); |
182 } | 183 } |
183 | 184 |
184 void FakePictureLayerImpl::ReleaseResources() { | 185 void FakePictureLayerImpl::ReleaseResources() { |
185 PictureLayerImpl::ReleaseResources(); | 186 PictureLayerImpl::ReleaseResources(); |
186 ++release_resources_count_; | 187 ++release_resources_count_; |
187 } | 188 } |
188 | 189 |
189 } // namespace cc | 190 } // namespace cc |
OLD | NEW |