| 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 CC_RESOURCES_SCOPED_RESOURCE_H_ | 5 #ifndef CC_RESOURCES_SCOPED_RESOURCE_H_ |
| 6 #define CC_RESOURCES_SCOPED_RESOURCE_H_ | 6 #define CC_RESOURCES_SCOPED_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "cc/base/cc_export.h" | 13 #include "cc/cc_export.h" |
| 14 #include "cc/resources/resource.h" | 14 #include "cc/resources/resource.h" |
| 15 | 15 |
| 16 #if DCHECK_IS_ON() | 16 #if DCHECK_IS_ON() |
| 17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace cc { | 20 namespace cc { |
| 21 | 21 |
| 22 class CC_EXPORT ScopedResource : public Resource { | 22 class CC_EXPORT ScopedResource : public Resource { |
| 23 public: | 23 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 40 #if DCHECK_IS_ON() | 40 #if DCHECK_IS_ON() |
| 41 base::PlatformThreadId allocate_thread_id_; | 41 base::PlatformThreadId allocate_thread_id_; |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(ScopedResource); | 44 DISALLOW_COPY_AND_ASSIGN(ScopedResource); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace cc | 47 } // namespace cc |
| 48 | 48 |
| 49 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_ | 49 #endif // CC_RESOURCES_SCOPED_RESOURCE_H_ |
| OLD | NEW |