OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrTextureObj_DEFINED | 9 #ifndef GrTextureObj_DEFINED |
10 #define GrTextureObj_DEFINED | 10 #define GrTextureObj_DEFINED |
(...skipping 25 matching lines...) Expand all Loading... |
36 fTextureUnitReferees.removeShuffle(index); | 36 fTextureUnitReferees.removeShuffle(index); |
37 } | 37 } |
38 bool getBound(GrTextureUnitObj *referee) const { | 38 bool getBound(GrTextureUnitObj *referee) const { |
39 int index = fTextureUnitReferees.find(referee); | 39 int index = fTextureUnitReferees.find(referee); |
40 return 0 <= index; | 40 return 0 <= index; |
41 } | 41 } |
42 bool getBound() const { | 42 bool getBound() const { |
43 return 0 != fTextureUnitReferees.count(); | 43 return 0 != fTextureUnitReferees.count(); |
44 } | 44 } |
45 | 45 |
46 void deleteAction() SK_OVERRIDE; | 46 void deleteAction() override; |
47 | 47 |
48 protected: | 48 protected: |
49 | 49 |
50 private: | 50 private: |
51 // texture units that bind this texture (via "glBindTexture") | 51 // texture units that bind this texture (via "glBindTexture") |
52 SkTDArray<GrTextureUnitObj *> fTextureUnitReferees; | 52 SkTDArray<GrTextureUnitObj *> fTextureUnitReferees; |
53 | 53 |
54 typedef GrFBBindableObj INHERITED; | 54 typedef GrFBBindableObj INHERITED; |
55 }; | 55 }; |
56 | 56 |
57 #endif // GrTextureObj_DEFINED | 57 #endif // GrTextureObj_DEFINED |
OLD | NEW |