OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 8 |
9 #ifndef GrGLTexture_DEFINED | 9 #ifndef GrGLTexture_DEFINED |
10 #define GrGLTexture_DEFINED | 10 #define GrGLTexture_DEFINED |
11 | 11 |
12 #include "GrGpu.h" | 12 #include "GrGpu.h" |
13 #include "GrTexture.h" | 13 #include "GrTexture.h" |
14 #include "GrGLUtil.h" | 14 #include "GrGLUtil.h" |
15 | 15 |
| 16 class GrGLGpu; |
16 | 17 |
17 class GrGLTexture : public GrTexture { | 18 class GrGLTexture : public GrTexture { |
18 | 19 |
19 public: | 20 public: |
20 struct TexParams { | 21 struct TexParams { |
21 GrGLenum fMinFilter; | 22 GrGLenum fMinFilter; |
22 GrGLenum fMagFilter; | 23 GrGLenum fMagFilter; |
23 GrGLenum fWrapS; | 24 GrGLenum fWrapS; |
24 GrGLenum fWrapT; | 25 GrGLenum fWrapT; |
25 GrGLenum fSwizzleRGBA[4]; | 26 GrGLenum fSwizzleRGBA[4]; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 GrGLuint fTextureID; | 70 GrGLuint fTextureID; |
70 | 71 |
71 // We track this separately from GrGpuResource because this may be both a te
xture and a render | 72 // We track this separately from GrGpuResource because this may be both a te
xture and a render |
72 // target, and the texture may be wrapped while the render target is not. | 73 // target, and the texture may be wrapped while the render target is not. |
73 bool fIsWrapped; | 74 bool fIsWrapped; |
74 | 75 |
75 typedef GrTexture INHERITED; | 76 typedef GrTexture INHERITED; |
76 }; | 77 }; |
77 | 78 |
78 #endif | 79 #endif |
OLD | NEW |