| 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 #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" | |
| 11 #include "IntRect.h" | 10 #include "IntRect.h" |
| 12 #include "IntSize.h" | 11 #include "IntSize.h" |
| 13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 14 #include "base/basictypes.h" | 13 #include "base/logging.h" |
| 15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "cc/texture.h" |
| 16 #include "third_party/khronos/GLES2/gl2.h" | 16 #include "third_party/khronos/GLES2/gl2.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 | 19 |
| 20 class CCPrioritizedTextureManager; | 20 class CCPrioritizedTextureManager; |
| 21 | 21 |
| 22 class CCPrioritizedTexture { | 22 class CCPrioritizedTexture { |
| 23 public: | 23 public: |
| 24 static scoped_ptr<CCPrioritizedTexture> create(CCPrioritizedTextureManager*
manager, IntSize size, GLenum format) | 24 static scoped_ptr<CCPrioritizedTexture> create(CCPrioritizedTextureManager*
manager, IntSize size, GLenum format) |
| 25 { | 25 { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 Backing* m_backing; | 140 Backing* m_backing; |
| 141 CCPrioritizedTextureManager* m_manager; | 141 CCPrioritizedTextureManager* m_manager; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture); | 143 DISALLOW_COPY_AND_ASSIGN(CCPrioritizedTexture); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace cc | 146 } // namespace cc |
| 147 | 147 |
| 148 #endif | 148 #endif |
| OLD | NEW |