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 5031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5042 contents_changed ? quad_rect : gfx::Rect(); | 5042 contents_changed ? quad_rect : gfx::Rect(); |
5043 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); | 5043 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); |
5044 quad->SetNew(test_data->shared_quad_state.get(), | 5044 quad->SetNew(test_data->shared_quad_state.get(), |
5045 quad_rect, | 5045 quad_rect, |
5046 new_render_pass_id, | 5046 new_render_pass_id, |
5047 is_replica, | 5047 is_replica, |
5048 1, | 5048 1, |
5049 contents_changed_rect, | 5049 contents_changed_rect, |
5050 gfx::RectF(0.f, 0.f, 1.f, 1.f), | 5050 gfx::RectF(0.f, 0.f, 1.f, 1.f), |
5051 FilterOperations(), | 5051 FilterOperations(), |
5052 skia::RefPtr<SkImageFilter>(), | |
5053 FilterOperations()); | 5052 FilterOperations()); |
5054 render_pass->AppendQuad(quad.PassAs<DrawQuad>()); | 5053 render_pass->AppendQuad(quad.PassAs<DrawQuad>()); |
5055 } | 5054 } |
5056 } | 5055 } |
5057 test_data->render_passes_by_id[render_pass_id] = render_pass.get(); | 5056 test_data->render_passes_by_id[render_pass_id] = render_pass.get(); |
5058 test_data->render_passes.insert(test_data->render_passes.begin(), | 5057 test_data->render_passes.insert(test_data->render_passes.begin(), |
5059 render_pass.PassAs<RenderPass>()); | 5058 render_pass.PassAs<RenderPass>()); |
5060 if (*current_char) | 5059 if (*current_char) |
5061 current_char++; | 5060 current_char++; |
5062 } | 5061 } |
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6376 EXPECT_EQ(0u, host_impl_->ResourceIdForUIResource(ui_resource_id)); | 6375 EXPECT_EQ(0u, host_impl_->ResourceIdForUIResource(ui_resource_id)); |
6377 EXPECT_EQ(0u, context3d->NumTextures()); | 6376 EXPECT_EQ(0u, context3d->NumTextures()); |
6378 | 6377 |
6379 // Should not change state for multiple deletion on one UIResourceId | 6378 // Should not change state for multiple deletion on one UIResourceId |
6380 host_impl_->DeleteUIResource(ui_resource_id); | 6379 host_impl_->DeleteUIResource(ui_resource_id); |
6381 EXPECT_EQ(0u, context3d->NumTextures()); | 6380 EXPECT_EQ(0u, context3d->NumTextures()); |
6382 } | 6381 } |
6383 | 6382 |
6384 } // namespace | 6383 } // namespace |
6385 } // namespace cc | 6384 } // namespace cc |
OLD | NEW |