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> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 #include <utility> | 11 #include <utility> |
9 | 12 |
10 #include "base/bind.h" | 13 #include "base/bind.h" |
11 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
12 #include "cc/base/math_util.h" | 15 #include "cc/base/math_util.h" |
13 #include "cc/layers/append_quads_data.h" | 16 #include "cc/layers/append_quads_data.h" |
14 #include "cc/layers/render_pass_sink.h" | 17 #include "cc/layers/render_pass_sink.h" |
15 #include "cc/output/delegated_frame_data.h" | 18 #include "cc/output/delegated_frame_data.h" |
16 #include "cc/quads/render_pass_draw_quad.h" | 19 #include "cc/quads/render_pass_draw_quad.h" |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 if (own_child_id_) { | 515 if (own_child_id_) { |
513 ResourceProvider* provider = layer_tree_impl()->resource_provider(); | 516 ResourceProvider* provider = layer_tree_impl()->resource_provider(); |
514 provider->DestroyChild(child_id_); | 517 provider->DestroyChild(child_id_); |
515 } | 518 } |
516 | 519 |
517 resources_.clear(); | 520 resources_.clear(); |
518 child_id_ = 0; | 521 child_id_ = 0; |
519 } | 522 } |
520 | 523 |
521 } // namespace cc | 524 } // namespace cc |
OLD | NEW |