| 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 CCScopedTexture_h | 5 #ifndef CCScopedTexture_h |
| 6 #define CCScopedTexture_h | 6 #define CCScopedTexture_h |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/logging.h" | 11 #include "cc/texture.h" |
| 11 #include "CCTexture.h" | |
| 12 | 12 |
| 13 #ifndef NDEBUG | 13 #ifndef NDEBUG |
| 14 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 | 18 |
| 19 class CCScopedTexture : protected CCTexture { | 19 class CCScopedTexture : protected CCTexture { |
| 20 public: | 20 public: |
| 21 static scoped_ptr<CCScopedTexture> create(CCResourceProvider* resourceProvid
er) { return make_scoped_ptr(new CCScopedTexture(resourceProvider)); } | 21 static scoped_ptr<CCScopedTexture> create(CCResourceProvider* resourceProvid
er) { return make_scoped_ptr(new CCScopedTexture(resourceProvider)); } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 #ifndef NDEBUG | 39 #ifndef NDEBUG |
| 40 base::PlatformThreadId m_allocateThreadIdentifier; | 40 base::PlatformThreadId m_allocateThreadIdentifier; |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(CCScopedTexture); | 43 DISALLOW_COPY_AND_ASSIGN(CCScopedTexture); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } | 46 } |
| 47 | 47 |
| 48 #endif | 48 #endif |
| OLD | NEW |