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 GrGLStencilAttachment_DEFINED | 9 #ifndef GrGLStencilAttachment_DEFINED |
10 #define GrGLStencilAttachment_DEFINED | 10 #define GrGLStencilAttachment_DEFINED |
11 | 11 |
12 #include "gl/GrGLInterface.h" | 12 #include "gl/GrGLInterface.h" |
13 #include "GrStencilAttachment.h" | 13 #include "GrStencilAttachment.h" |
14 | 14 |
15 class GrGLStencilAttachment : public GrStencilAttachment { | 15 class GrGLStencilAttachment : public GrStencilAttachment { |
16 public: | 16 public: |
| 17 GrRenderTarget* arrgh() override { return NULL; } |
| 18 |
17 static const GrGLenum kUnknownInternalFormat = ~0U; | 19 static const GrGLenum kUnknownInternalFormat = ~0U; |
18 static const GrGLuint kUnknownBitCount = ~0U; | 20 static const GrGLuint kUnknownBitCount = ~0U; |
19 struct Format { | 21 struct Format { |
20 GrGLenum fInternalFormat; | 22 GrGLenum fInternalFormat; |
21 GrGLuint fStencilBits; | 23 GrGLuint fStencilBits; |
22 GrGLuint fTotalBits; | 24 GrGLuint fTotalBits; |
23 bool fPacked; | 25 bool fPacked; |
24 }; | 26 }; |
25 | 27 |
26 struct IDDesc { | 28 struct IDDesc { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 Format fFormat; | 61 Format fFormat; |
60 // may be zero for external SBs associated with external RTs | 62 // may be zero for external SBs associated with external RTs |
61 // (we don't require the client to give us the id, just tell | 63 // (we don't require the client to give us the id, just tell |
62 // us how many bits of stencil there are). | 64 // us how many bits of stencil there are). |
63 GrGLuint fRenderbufferID; | 65 GrGLuint fRenderbufferID; |
64 | 66 |
65 typedef GrStencilAttachment INHERITED; | 67 typedef GrStencilAttachment INHERITED; |
66 }; | 68 }; |
67 | 69 |
68 #endif | 70 #endif |
OLD | NEW |