| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 quad->SetNew(sqs, | 188 quad->SetNew(sqs, |
| 189 output_rect, | 189 output_rect, |
| 190 output_rect, | 190 output_rect, |
| 191 id, | 191 id, |
| 192 false, // is_replica | 192 false, // is_replica |
| 193 0, // mask_resource_id | 193 0, // mask_resource_id |
| 194 damage_rect, | 194 damage_rect, |
| 195 gfx::Rect(0, 0, 1, 1), // mask_uv_rect | 195 gfx::Rect(0, 0, 1, 1), // mask_uv_rect |
| 196 filters, | 196 filters, |
| 197 background_filters); | 197 background_filters, |
| 198 gfx::Vector2dF(1.f, 1.f)); |
| 198 frame->render_pass_list[0]->quad_list.push_back(quad.PassAs<DrawQuad>()); | 199 frame->render_pass_list[0]->quad_list.push_back(quad.PassAs<DrawQuad>()); |
| 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 |