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( | 53 return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id())); |
54 new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>(); | |
55 } | 54 } |
56 | 55 |
57 void FakePictureLayerImpl::AppendQuads( | 56 void FakePictureLayerImpl::AppendQuads( |
58 RenderPass* render_pass, | 57 RenderPass* render_pass, |
59 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 58 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
60 AppendQuadsData* append_quads_data) { | 59 AppendQuadsData* append_quads_data) { |
61 PictureLayerImpl::AppendQuads( | 60 PictureLayerImpl::AppendQuads( |
62 render_pass, occlusion_tracker, append_quads_data); | 61 render_pass, occlusion_tracker, append_quads_data); |
63 ++append_quads_count_; | 62 ++append_quads_count_; |
64 } | 63 } |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 ? has_valid_tile_priorities_ | 180 ? has_valid_tile_priorities_ |
182 : PictureLayerImpl::HasValidTilePriorities(); | 181 : PictureLayerImpl::HasValidTilePriorities(); |
183 } | 182 } |
184 | 183 |
185 void FakePictureLayerImpl::ReleaseResources() { | 184 void FakePictureLayerImpl::ReleaseResources() { |
186 PictureLayerImpl::ReleaseResources(); | 185 PictureLayerImpl::ReleaseResources(); |
187 ++release_resources_count_; | 186 ++release_resources_count_; |
188 } | 187 } |
189 | 188 |
190 } // namespace cc | 189 } // namespace cc |
OLD | NEW |