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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/prioritized_texture.h" | 7 #include "cc/prioritized_texture.h" |
8 | 8 |
9 #include "cc/platform_color.h" | 9 #include "cc/platform_color.h" |
10 #include "cc/prioritized_texture_manager.h" | 10 #include "cc/prioritized_texture_manager.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 | 190 |
191 void PrioritizedTexture::Backing::updateInDrawingImplTree() | 191 void PrioritizedTexture::Backing::updateInDrawingImplTree() |
192 { | 192 { |
193 DCHECK(Proxy::isImplThread() && Proxy::isMainThreadBlocked()); | 193 DCHECK(Proxy::isImplThread() && Proxy::isMainThreadBlocked()); |
194 m_inDrawingImplTree = !!owner(); | 194 m_inDrawingImplTree = !!owner(); |
195 if (!m_inDrawingImplTree) | 195 if (!m_inDrawingImplTree) |
196 DCHECK(m_priorityAtLastPriorityUpdate == PriorityCalculator::lowestPrior
ity()); | 196 DCHECK(m_priorityAtLastPriorityUpdate == PriorityCalculator::lowestPrior
ity()); |
197 } | 197 } |
198 | 198 |
| 199 void PrioritizedTexture::returnBackingTexture() |
| 200 { |
| 201 DCHECK(m_manager || !m_backing); |
| 202 if (m_manager) |
| 203 m_manager->returnBackingTexture(this); |
| 204 } |
| 205 |
199 } // namespace cc | 206 } // namespace cc |
OLD | NEW |