OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrTexturePriv_DEFINED | 8 #ifndef GrTexturePriv_DEFINED |
9 #define GrTexturePriv_DEFINED | 9 #define GrTexturePriv_DEFINED |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 private: | 55 private: |
56 GrTexturePriv(GrTexture* texture) : fTexture(texture) { } | 56 GrTexturePriv(GrTexture* texture) : fTexture(texture) { } |
57 GrTexturePriv(const GrTexturePriv& that) : fTexture(that.fTexture) { } | 57 GrTexturePriv(const GrTexturePriv& that) : fTexture(that.fTexture) { } |
58 GrTexturePriv& operator=(const GrTexturePriv&); // unimpl | 58 GrTexturePriv& operator=(const GrTexturePriv&); // unimpl |
59 | 59 |
60 // No taking addresses of this type. | 60 // No taking addresses of this type. |
61 const GrTexturePriv* operator&() const; | 61 const GrTexturePriv* operator&() const; |
62 GrTexturePriv* operator&(); | 62 GrTexturePriv* operator&(); |
63 | 63 |
64 GrTexture* fTexture; | 64 GrTexture* fTexture; |
65 | 65 |
66 friend class GrTexture; // to construct/copy this type. | 66 friend class GrTexture; // to construct/copy this type. |
67 }; | 67 }; |
68 | 68 |
69 inline GrTexturePriv GrTexture::texturePriv() { return GrTexturePriv(this); } | 69 inline GrTexturePriv GrTexture::texturePriv() { return GrTexturePriv(this); } |
70 | 70 |
71 inline const GrTexturePriv GrTexture::texturePriv () const { | 71 inline const GrTexturePriv GrTexture::texturePriv () const { |
72 return GrTexturePriv(const_cast<GrTexture*>(this)); | 72 return GrTexturePriv(const_cast<GrTexture*>(this)); |
73 } | 73 } |
74 | 74 |
75 #endif | 75 #endif |
OLD | NEW |