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/texture_layer_impl.h" | 5 #include "cc/texture_layer_impl.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "cc/layer_tree_impl.h" | 8 #include "cc/layer_tree_impl.h" |
| 9 #include "cc/output/renderer.h" |
9 #include "cc/quad_sink.h" | 10 #include "cc/quad_sink.h" |
10 #include "cc/renderer.h" | |
11 #include "cc/texture_draw_quad.h" | 11 #include "cc/texture_draw_quad.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 TextureLayerImpl::TextureLayerImpl(LayerTreeImpl* tree_impl, | 15 TextureLayerImpl::TextureLayerImpl(LayerTreeImpl* tree_impl, |
16 int id, | 16 int id, |
17 bool uses_mailbox) | 17 bool uses_mailbox) |
18 : LayerImpl(tree_impl, id), | 18 : LayerImpl(tree_impl, id), |
19 texture_id_(0), | 19 texture_id_(0), |
20 external_texture_resource_(0), | 20 external_texture_resource_(0), |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } else if (external_texture_resource_) { | 154 } else if (external_texture_resource_) { |
155 DCHECK(!own_mailbox_); | 155 DCHECK(!own_mailbox_); |
156 ResourceProvider* resource_provider = | 156 ResourceProvider* resource_provider = |
157 layer_tree_impl()->resource_provider(); | 157 layer_tree_impl()->resource_provider(); |
158 resource_provider->DeleteResource(external_texture_resource_); | 158 resource_provider->DeleteResource(external_texture_resource_); |
159 external_texture_resource_ = 0; | 159 external_texture_resource_ = 0; |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 } // namespace cc | 163 } // namespace cc |
OLD | NEW |