Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Side by Side Diff: cc/resources/prioritized_resource.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/prioritized_resource.h ('k') | cc/resources/prioritized_resource_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource.h ('k') | cc/resources/prioritized_resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698