| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 5133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5144 contents_changed ? quad_rect : gfx::Rect(); | 5144 contents_changed ? quad_rect : gfx::Rect(); |
| 5145 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); | 5145 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); |
| 5146 quad->SetNew(test_data->shared_quad_state.get(), | 5146 quad->SetNew(test_data->shared_quad_state.get(), |
| 5147 quad_rect, | 5147 quad_rect, |
| 5148 new_render_pass_id, | 5148 new_render_pass_id, |
| 5149 is_replica, | 5149 is_replica, |
| 5150 1, | 5150 1, |
| 5151 contents_changed_rect, | 5151 contents_changed_rect, |
| 5152 gfx::RectF(0.f, 0.f, 1.f, 1.f), | 5152 gfx::RectF(0.f, 0.f, 1.f, 1.f), |
| 5153 FilterOperations(), | 5153 FilterOperations(), |
| 5154 skia::RefPtr<SkImageFilter>(), | |
| 5155 FilterOperations()); | 5154 FilterOperations()); |
| 5156 render_pass->AppendQuad(quad.PassAs<DrawQuad>()); | 5155 render_pass->AppendQuad(quad.PassAs<DrawQuad>()); |
| 5157 } | 5156 } |
| 5158 } | 5157 } |
| 5159 test_data->render_passes_by_id[render_pass_id] = render_pass.get(); | 5158 test_data->render_passes_by_id[render_pass_id] = render_pass.get(); |
| 5160 test_data->render_passes.insert(test_data->render_passes.begin(), | 5159 test_data->render_passes.insert(test_data->render_passes.begin(), |
| 5161 render_pass.PassAs<RenderPass>()); | 5160 render_pass.PassAs<RenderPass>()); |
| 5162 if (*current_char) | 5161 if (*current_char) |
| 5163 current_char++; | 5162 current_char++; |
| 5164 } | 5163 } |
| (...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6616 host_impl_.reset(); | 6615 host_impl_.reset(); |
| 6617 | 6616 |
| 6618 // The CopyOutputResult's callback was cancelled, the CopyOutputResult | 6617 // The CopyOutputResult's callback was cancelled, the CopyOutputResult |
| 6619 // released, and the texture deleted. | 6618 // released, and the texture deleted. |
| 6620 EXPECT_TRUE(context_provider->HasOneRef()); | 6619 EXPECT_TRUE(context_provider->HasOneRef()); |
| 6621 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures()); | 6620 EXPECT_EQ(0u, context_provider->TestContext3d()->NumTextures()); |
| 6622 } | 6621 } |
| 6623 | 6622 |
| 6624 } // namespace | 6623 } // namespace |
| 6625 } // namespace cc | 6624 } // namespace cc |
| OLD | NEW |