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

Side by Side Diff: cc/prioritized_texture.h

Issue 11196014: Revert "cc: Switch to Chromium DCHECKs LOGs" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/platform_color.h ('k') | cc/prioritized_texture.cc » ('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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/dcheck.h"
11 #include "CCPriorityCalculator.h" 10 #include "CCPriorityCalculator.h"
12 #include "CCResourceProvider.h" 11 #include "CCResourceProvider.h"
13 #include "CCTexture.h" 12 #include "CCTexture.h"
14 #include "GraphicsContext3D.h" 13 #include "GraphicsContext3D.h"
15 #include "IntRect.h" 14 #include "IntRect.h"
16 #include "IntSize.h" 15 #include "IntSize.h"
17 16
18 namespace cc { 17 namespace cc {
19 18
20 class CCPrioritizedTextureManager; 19 class CCPrioritizedTextureManager;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 104 private:
106 friend class CCPrioritizedTexture; 105 friend class CCPrioritizedTexture;
107 CCPrioritizedTexture* m_owner; 106 CCPrioritizedTexture* m_owner;
108 int m_priorityAtLastPriorityUpdate; 107 int m_priorityAtLastPriorityUpdate;
109 bool m_wasAbovePriorityCutoffAtLastPriorityUpdate; 108 bool m_wasAbovePriorityCutoffAtLastPriorityUpdate;
110 109
111 // Set if this is currently-drawing impl tree. 110 // Set if this is currently-drawing impl tree.
112 bool m_inDrawingImplTree; 111 bool m_inDrawingImplTree;
113 112
114 bool m_resourceHasBeenDeleted; 113 bool m_resourceHasBeenDeleted;
115 #if CC_DCHECK_ENABLED() 114 #ifndef NDEBUG
116 CCResourceProvider* m_resourceProvider; 115 CCResourceProvider* m_resourceProvider;
117 #endif 116 #endif
118 117
119 DISALLOW_COPY_AND_ASSIGN(Backing); 118 DISALLOW_COPY_AND_ASSIGN(Backing);
120 }; 119 };
121 120
122 CCPrioritizedTexture(CCPrioritizedTextureManager*, IntSize, GC3Denum format) ; 121 CCPrioritizedTexture(CCPrioritizedTextureManager*, IntSize, GC3Denum format) ;
123 122
124 bool isAbovePriorityCutoff() { return m_isAbovePriorityCutoff; } 123 bool isAbovePriorityCutoff() { return m_isAbovePriorityCutoff; }
125 void setAbovePriorityCutoff(bool isAbovePriorityCutoff) { m_isAbovePriorityC utoff = isAbovePriorityCutoff; } 124 void setAbovePriorityCutoff(bool isAbovePriorityCutoff) { m_isAbovePriorityC utoff = isAbovePriorityCutoff; }
(...skipping 13 matching lines...) Expand all
139 138
140 Backing* m_backing; 139 Backing* m_backing;
141 CCPrioritizedTextureManager* m_manager; 140 CCPrioritizedTextureManager* m_manager;
142 141
143 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture); 142 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture);
144 }; 143 };
145 144
146 } // namespace cc 145 } // namespace cc
147 146
148 #endif 147 #endif
OLDNEW
« no previous file with comments | « cc/platform_color.h ('k') | cc/prioritized_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698