OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrTextreUnitObj_DEFINED | 8 #ifndef GrTextureUnitObj_DEFINED |
10 #define GrTextureUnitObj_DEFINED | 9 #define GrTextureUnitObj_DEFINED |
11 | 10 |
12 #include "GrFakeRefObj.h" | 11 #include "GrFakeRefObj.h" |
13 class GrTextureObj; | 12 class GrTextureObj; |
14 | 13 |
15 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
16 // Although texture unit objects are allocated & deallocated like the other | 15 // Although texture unit objects are allocated & deallocated like the other |
17 // GL emulation objects they are derived from GrFakeRefObj to provide some | 16 // GL emulation objects they are derived from GrFakeRefObj to provide some |
18 // uniformity in how the GrDebugGL class manages resources | 17 // uniformity in how the GrDebugGL class manages resources |
19 class GrTextureUnitObj : public GrFakeRefObj { | 18 class GrTextureUnitObj : public GrFakeRefObj { |
(...skipping 16 matching lines...) Expand all Loading... |
36 | 35 |
37 protected: | 36 protected: |
38 private: | 37 private: |
39 GrGLenum fNumber; | 38 GrGLenum fNumber; |
40 GrTextureObj *fTexture; | 39 GrTextureObj *fTexture; |
41 | 40 |
42 typedef GrFakeRefObj INHERITED; | 41 typedef GrFakeRefObj INHERITED; |
43 }; | 42 }; |
44 | 43 |
45 #endif // GrTextureUnitObj_DEFINED | 44 #endif // GrTextureUnitObj_DEFINED |
OLD | NEW |