| 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_delegated_renderer_layer_impl.h" | 5 #include "cc/test/fake_delegated_renderer_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "cc/delegated_frame_data.h" | |
| 9 #include "cc/draw_quad.h" | 8 #include "cc/draw_quad.h" |
| 9 #include "cc/output/delegated_frame_data.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 FakeDelegatedRendererLayerImpl::FakeDelegatedRendererLayerImpl( | 13 FakeDelegatedRendererLayerImpl::FakeDelegatedRendererLayerImpl( |
| 14 LayerTreeImpl* tree_impl, int id) | 14 LayerTreeImpl* tree_impl, int id) |
| 15 : DelegatedRendererLayerImpl(tree_impl, id) {} | 15 : DelegatedRendererLayerImpl(tree_impl, id) {} |
| 16 | 16 |
| 17 FakeDelegatedRendererLayerImpl::~FakeDelegatedRendererLayerImpl() {} | 17 FakeDelegatedRendererLayerImpl::~FakeDelegatedRendererLayerImpl() {} |
| 18 | 18 |
| 19 static ResourceProvider::ResourceId AddResourceToFrame( | 19 static ResourceProvider::ResourceId AddResourceToFrame( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 RenderPass* pass = delegated_frame->render_pass_list[i]; | 37 RenderPass* pass = delegated_frame->render_pass_list[i]; |
| 38 for (size_t j = 0; j < pass->quad_list.size(); ++j) | 38 for (size_t j = 0; j < pass->quad_list.size(); ++j) |
| 39 pass->quad_list[j]->IterateResources(add_resource_to_frame_callback); | 39 pass->quad_list[j]->IterateResources(add_resource_to_frame_callback); |
| 40 } | 40 } |
| 41 | 41 |
| 42 TransferableResourceArray resources_for_ack; | 42 TransferableResourceArray resources_for_ack; |
| 43 SetFrameData(delegated_frame.Pass(), gfx::RectF(), &resources_for_ack); | 43 SetFrameData(delegated_frame.Pass(), gfx::RectF(), &resources_for_ack); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace cc | 46 } // namespace cc |
| OLD | NEW |