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" | |
6 | |
7 #include "cc/prioritized_resource.h" | 5 #include "cc/prioritized_resource.h" |
8 | 6 |
9 #include "cc/platform_color.h" | 7 #include "cc/platform_color.h" |
10 #include "cc/prioritized_resource_manager.h" | 8 #include "cc/prioritized_resource_manager.h" |
11 #include "cc/priority_calculator.h" | 9 #include "cc/priority_calculator.h" |
12 #include "cc/proxy.h" | 10 #include "cc/proxy.h" |
13 #include <algorithm> | 11 #include <algorithm> |
14 | 12 |
15 using namespace std; | 13 using namespace std; |
16 | 14 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 202 } |
205 | 203 |
206 const Proxy* PrioritizedResource::Backing::proxy() const | 204 const Proxy* PrioritizedResource::Backing::proxy() const |
207 { | 205 { |
208 if (!m_owner || !m_owner->resourceManager()) | 206 if (!m_owner || !m_owner->resourceManager()) |
209 return 0; | 207 return 0; |
210 return m_owner->resourceManager()->proxyForDebug(); | 208 return m_owner->resourceManager()->proxyForDebug(); |
211 } | 209 } |
212 | 210 |
213 } // namespace cc | 211 } // namespace cc |
OLD | NEW |