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/prioritized_resource.h" | 5 #include "cc/resources/prioritized_resource.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "cc/platform_color.h" | 9 #include "cc/resources/platform_color.h" |
10 #include "cc/prioritized_resource_manager.h" | 10 #include "cc/resources/prioritized_resource_manager.h" |
11 #include "cc/priority_calculator.h" | 11 #include "cc/resources/priority_calculator.h" |
12 #include "cc/trees/proxy.h" | 12 #include "cc/trees/proxy.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 PrioritizedResource::PrioritizedResource(PrioritizedResourceManager* manager, gf
x::Size size, GLenum format) | 16 PrioritizedResource::PrioritizedResource(PrioritizedResourceManager* manager, gf
x::Size size, GLenum format) |
17 : m_size(size) | 17 : m_size(size) |
18 , m_format(format) | 18 , m_format(format) |
19 , m_bytes(0) | 19 , m_bytes(0) |
20 , m_contentsSwizzled(false) | 20 , m_contentsSwizzled(false) |
21 , m_priority(PriorityCalculator::LowestPriority()) | 21 , m_priority(PriorityCalculator::LowestPriority()) |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 } | 201 } |
202 | 202 |
203 const Proxy* PrioritizedResource::Backing::proxy() const | 203 const Proxy* PrioritizedResource::Backing::proxy() const |
204 { | 204 { |
205 if (!m_owner || !m_owner->resourceManager()) | 205 if (!m_owner || !m_owner->resourceManager()) |
206 return 0; | 206 return 0; |
207 return m_owner->resourceManager()->proxyForDebug(); | 207 return m_owner->resourceManager()->proxyForDebug(); |
208 } | 208 } |
209 | 209 |
210 } // namespace cc | 210 } // namespace cc |
OLD | NEW |