| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #ifndef GrGpuResourcePriv_DEFINED | 8 #ifndef GrGpuResourcePriv_DEFINED |
| 10 #define GrGpuResourcePriv_DEFINED | 9 #define GrGpuResourcePriv_DEFINED |
| 11 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 friend class GrGpuResource; // to construct/copy this type. | 81 friend class GrGpuResource; // to construct/copy this type. |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { return Resour
cePriv(this); } | 84 inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { return Resour
cePriv(this); } |
| 86 | 85 |
| 87 inline const GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() const { | 86 inline const GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() const { |
| 88 return ResourcePriv(const_cast<GrGpuResource*>(this)); | 87 return ResourcePriv(const_cast<GrGpuResource*>(this)); |
| 89 } | 88 } |
| 90 | 89 |
| 91 #endif | 90 #endif |
| OLD | NEW |