| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/delegated_renderer_layer_impl.h" | 5 #include "cc/layers/delegated_renderer_layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/containers/hash_tables.h" | |
| 15 #include "cc/base/math_util.h" | 14 #include "cc/base/math_util.h" |
| 16 #include "cc/layers/append_quads_data.h" | 15 #include "cc/layers/append_quads_data.h" |
| 17 #include "cc/layers/render_pass_sink.h" | 16 #include "cc/layers/render_pass_sink.h" |
| 18 #include "cc/output/delegated_frame_data.h" | 17 #include "cc/output/delegated_frame_data.h" |
| 19 #include "cc/quads/render_pass_draw_quad.h" | 18 #include "cc/quads/render_pass_draw_quad.h" |
| 20 #include "cc/quads/solid_color_draw_quad.h" | 19 #include "cc/quads/solid_color_draw_quad.h" |
| 21 #include "cc/trees/layer_tree_impl.h" | 20 #include "cc/trees/layer_tree_impl.h" |
| 22 #include "cc/trees/occlusion.h" | 21 #include "cc/trees/occlusion.h" |
| 23 #include "ui/gfx/geometry/rect_conversions.h" | 22 #include "ui/gfx/geometry/rect_conversions.h" |
| 24 | 23 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 if (own_child_id_) { | 505 if (own_child_id_) { |
| 507 ResourceProvider* provider = layer_tree_impl()->resource_provider(); | 506 ResourceProvider* provider = layer_tree_impl()->resource_provider(); |
| 508 provider->DestroyChild(child_id_); | 507 provider->DestroyChild(child_id_); |
| 509 } | 508 } |
| 510 | 509 |
| 511 resources_.clear(); | 510 resources_.clear(); |
| 512 child_id_ = 0; | 511 child_id_ = 0; |
| 513 } | 512 } |
| 514 | 513 |
| 515 } // namespace cc | 514 } // namespace cc |
| OLD | NEW |