| 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 GrGLRenderTarget_DEFINED | 9 #ifndef GrGLRenderTarget_DEFINED |
| 10 #define GrGLRenderTarget_DEFINED | 10 #define GrGLRenderTarget_DEFINED |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 enum { kUnresolvableFBOID = 0 }; | 25 enum { kUnresolvableFBOID = 0 }; |
| 26 | 26 |
| 27 struct Desc { | 27 struct Desc { |
| 28 GrGLuint fRTFBOID; | 28 GrGLuint fRTFBOID; |
| 29 GrGLuint fTexFBOID; | 29 GrGLuint fTexFBOID; |
| 30 GrGLuint fMSColorRenderbufferID; | 30 GrGLuint fMSColorRenderbufferID; |
| 31 bool fIsWrapped; | 31 bool fIsWrapped; |
| 32 GrPixelConfig fConfig; | 32 GrPixelConfig fConfig; |
| 33 int fSampleCnt; | 33 int fSampleCnt; |
| 34 GrSurfaceOrigin fOrigin; | 34 GrSurfaceOrigin fOrigin; |
| 35 bool fCheckAllocation; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 // creates a GrGLRenderTarget associated with a texture | 38 // creates a GrGLRenderTarget associated with a texture |
| 38 GrGLRenderTarget(GrGpuGL* gpu, | 39 GrGLRenderTarget(GrGpuGL* gpu, |
| 39 const Desc& desc, | 40 const Desc& desc, |
| 40 const GrGLIRect& viewport, | 41 const GrGLIRect& viewport, |
| 41 GrGLTexID* texID, | 42 GrGLTexID* texID, |
| 42 GrGLTexture* texture); | 43 GrGLTexture* texture); |
| 43 | 44 |
| 44 // creates an independent GrGLRenderTarget | 45 // creates an independent GrGLRenderTarget |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 // non-NULL if this RT was created by Gr with an associated GrGLTexture. | 99 // non-NULL if this RT was created by Gr with an associated GrGLTexture. |
| 99 GrGLTexID* fTexIDObj; | 100 GrGLTexID* fTexIDObj; |
| 100 | 101 |
| 101 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); | 102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); |
| 102 | 103 |
| 103 typedef GrRenderTarget INHERITED; | 104 typedef GrRenderTarget INHERITED; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 #endif | 107 #endif |
| OLD | NEW |