| 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 GrGLStencilBuffer_DEFINED | 9 #ifndef GrGLStencilBuffer_DEFINED |
| 10 #define GrGLStencilBuffer_DEFINED | 10 #define GrGLStencilBuffer_DEFINED |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 GrGLuint renderbufferID() const { | 43 GrGLuint renderbufferID() const { |
| 44 return fRenderbufferID; | 44 return fRenderbufferID; |
| 45 } | 45 } |
| 46 | 46 |
| 47 const Format& format() const { return fFormat; } | 47 const Format& format() const { return fFormat; } |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 // overrides of GrResource | 50 // overrides of GrResource |
| 51 void onRelease() SK_OVERRIDE; | 51 void onRelease() override; |
| 52 void onAbandon() SK_OVERRIDE; | 52 void onAbandon() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 size_t onGpuMemorySize() const SK_OVERRIDE; | 55 size_t onGpuMemorySize() const override; |
| 56 | 56 |
| 57 Format fFormat; | 57 Format fFormat; |
| 58 // may be zero for external SBs associated with external RTs | 58 // may be zero for external SBs associated with external RTs |
| 59 // (we don't require the client to give us the id, just tell | 59 // (we don't require the client to give us the id, just tell |
| 60 // us how many bits of stencil there are). | 60 // us how many bits of stencil there are). |
| 61 GrGLuint fRenderbufferID; | 61 GrGLuint fRenderbufferID; |
| 62 | 62 |
| 63 typedef GrStencilBuffer INHERITED; | 63 typedef GrStencilBuffer INHERITED; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif | 66 #endif |
| OLD | NEW |