Chromium Code Reviews| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 GrGLuint fRTFBOID; | 89 GrGLuint fRTFBOID; |
| 90 GrGLuint fTexFBOID; | 90 GrGLuint fTexFBOID; |
| 91 | 91 |
| 92 GrGLuint fMSColorRenderbufferID; | 92 GrGLuint fMSColorRenderbufferID; |
| 93 | 93 |
| 94 // when we switch to this render target we want to set the viewport to | 94 // when we switch to this render target we want to set the viewport to |
| 95 // only render to to content area (as opposed to the whole allocation) and | 95 // only render to to content area (as opposed to the whole allocation) and |
| 96 // we want the rendering to be at top left (GL has origin in bottom left) | 96 // we want the rendering to be at top left (GL has origin in bottom left) |
| 97 GrGLIRect fViewport; | 97 GrGLIRect fViewport; |
| 98 | 98 |
| 99 // 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. |
|
robertphillips
2013/07/17 14:13:21
Would a SkRefPtr be better here?
| |
| 100 GrGLTexID* fTexIDObj; | 100 SkAutoTUnref<GrGLTexID> fTexIDObj; |
| 101 | 101 |
| 102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); | 102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); |
| 103 | 103 |
| 104 typedef GrRenderTarget INHERITED; | 104 typedef GrRenderTarget INHERITED; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif | 107 #endif |
| OLD | NEW |