| 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_RESOURCE_PROVIDER_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ | 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // by assertions. | 213 // by assertions. |
| 214 class CC_EXPORT ScopedReadLockGL { | 214 class CC_EXPORT ScopedReadLockGL { |
| 215 public: | 215 public: |
| 216 ScopedReadLockGL(ResourceProvider* resource_provider, | 216 ScopedReadLockGL(ResourceProvider* resource_provider, |
| 217 ResourceId resource_id); | 217 ResourceId resource_id); |
| 218 ~ScopedReadLockGL(); | 218 ~ScopedReadLockGL(); |
| 219 | 219 |
| 220 unsigned texture_id() const { return texture_id_; } | 220 unsigned texture_id() const { return texture_id_; } |
| 221 GLenum target() const { return target_; } | 221 GLenum target() const { return target_; } |
| 222 const gfx::Size& size() const { return size_; } | 222 const gfx::Size& size() const { return size_; } |
| 223 ResourceId resource_id() const { return resource_id_; } |
| 223 | 224 |
| 224 private: | 225 private: |
| 225 ResourceProvider* resource_provider_; | 226 ResourceProvider* resource_provider_; |
| 226 ResourceId resource_id_; | 227 ResourceId resource_id_; |
| 227 unsigned texture_id_; | 228 unsigned texture_id_; |
| 228 GLenum target_; | 229 GLenum target_; |
| 229 gfx::Size size_; | 230 gfx::Size size_; |
| 230 | 231 |
| 231 DISALLOW_COPY_AND_ASSIGN(ScopedReadLockGL); | 232 DISALLOW_COPY_AND_ASSIGN(ScopedReadLockGL); |
| 232 }; | 233 }; |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 // A process-unique ID used for disambiguating memory dumps from different | 698 // A process-unique ID used for disambiguating memory dumps from different |
| 698 // resource providers. | 699 // resource providers. |
| 699 int tracing_id_; | 700 int tracing_id_; |
| 700 | 701 |
| 701 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 702 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| 702 }; | 703 }; |
| 703 | 704 |
| 704 } // namespace cc | 705 } // namespace cc |
| 705 | 706 |
| 706 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 707 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
| OLD | NEW |