| 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 quad->SetNew(sqs, | 189 quad->SetNew(sqs, |
| 190 output_rect, | 190 output_rect, |
| 191 output_rect, | 191 output_rect, |
| 192 id, | 192 id, |
| 193 false, // is_replica | 193 false, // is_replica |
| 194 0, // mask_resource_id | 194 0, // mask_resource_id |
| 195 damage_rect, | 195 damage_rect, |
| 196 gfx::Rect(0, 0, 1, 1), // mask_uv_rect | 196 gfx::Rect(0, 0, 1, 1), // mask_uv_rect |
| 197 filters, | 197 filters, |
| 198 gfx::Vector2dF(), |
| 198 background_filters); | 199 background_filters); |
| 199 } | 200 } |
| 200 | 201 |
| 201 static ResourceProvider::ResourceId AppendResourceId( | 202 static ResourceProvider::ResourceId AppendResourceId( |
| 202 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame, | 203 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame, |
| 203 ResourceProvider::ResourceId resource_id) { | 204 ResourceProvider::ResourceId resource_id) { |
| 204 resources_in_last_sent_frame->push_back(resource_id); | 205 resources_in_last_sent_frame->push_back(resource_id); |
| 205 return resource_id; | 206 return resource_id; |
| 206 } | 207 } |
| 207 | 208 |
| (...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 } | 2194 } |
| 2194 | 2195 |
| 2195 scoped_refptr<DelegatedRendererLayer> delegated_thief_; | 2196 scoped_refptr<DelegatedRendererLayer> delegated_thief_; |
| 2196 }; | 2197 }; |
| 2197 | 2198 |
| 2198 SINGLE_AND_MULTI_THREAD_TEST_F( | 2199 SINGLE_AND_MULTI_THREAD_TEST_F( |
| 2199 LayerTreeHostDelegatedTestRemoveAndChangeResources); | 2200 LayerTreeHostDelegatedTestRemoveAndChangeResources); |
| 2200 | 2201 |
| 2201 } // namespace | 2202 } // namespace |
| 2202 } // namespace cc | 2203 } // namespace cc |
| OLD | NEW |