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

Side by Side Diff: cc/CCPrioritizedTexture.h

Issue 10917281: Adjust texture priorities in preparation of impl-thread eviction of only some textures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove spurious .gitmodules Created 8 years, 3 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 | « no previous file | cc/CCPriorityCalculator.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 #ifndef CCPrioritizedTexture_h 5 #ifndef CCPrioritizedTexture_h
6 #define CCPrioritizedTexture_h 6 #define CCPrioritizedTexture_h
7 7
8 #include "CCPriorityCalculator.h" 8 #include "CCPriorityCalculator.h"
9 #include "CCResourceProvider.h" 9 #include "CCResourceProvider.h"
10 #include "CCTexture.h" 10 #include "CCTexture.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void setManagerInternal(CCPrioritizedTextureManager* manager) { m_manager = manager; } 101 void setManagerInternal(CCPrioritizedTextureManager* manager) { m_manager = manager; }
102 102
103 Backing* backing() const { return m_backing; } 103 Backing* backing() const { return m_backing; }
104 void link(Backing*); 104 void link(Backing*);
105 void unlink(); 105 void unlink();
106 106
107 IntSize m_size; 107 IntSize m_size;
108 GC3Denum m_format; 108 GC3Denum m_format;
109 size_t m_bytes; 109 size_t m_bytes;
110 110
111 size_t m_priority; 111 int m_priority;
112 bool m_isAbovePriorityCutoff; 112 bool m_isAbovePriorityCutoff;
113 bool m_isSelfManaged; 113 bool m_isSelfManaged;
114 114
115 Backing* m_backing; 115 Backing* m_backing;
116 CCPrioritizedTextureManager* m_manager; 116 CCPrioritizedTextureManager* m_manager;
117 }; 117 };
118 118
119 } // namespace cc 119 } // namespace cc
120 120
121 #endif 121 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/CCPriorityCalculator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698