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 #ifndef GrRenderTarget_DEFINED | 8 #ifndef GrRenderTarget_DEFINED |
9 #define GrRenderTarget_DEFINED | 9 #define GrRenderTarget_DEFINED |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 SampleConfig fSampleConfig; | 184 SampleConfig fSampleConfig; |
185 | 185 |
186 SkIRect fResolveRect; | 186 SkIRect fResolveRect; |
187 | 187 |
188 // The last drawTarget that wrote to or is currently going to write to this
renderTarget | 188 // The last drawTarget that wrote to or is currently going to write to this
renderTarget |
189 // The drawTarget can be closed (e.g., no draw context is currently bound | 189 // The drawTarget can be closed (e.g., no draw context is currently bound |
190 // to this renderTarget). | 190 // to this renderTarget). |
191 // This back-pointer is required so that we can add a dependancy between | 191 // This back-pointer is required so that we can add a dependancy between |
192 // the drawTarget used to create the current contents of this renderTarget | 192 // the drawTarget used to create the current contents of this renderTarget |
193 // and the drawTarget of a destination renderTarget to which this one is bei
ng drawn. | 193 // and the drawTarget of a destination renderTarget to which this one is bei
ng drawn. |
| 194 // TODO: it seems like the DT needs a pointer to the RT to which it is bound |
| 195 // when it dies it can then clear out this pointer. |
194 GrDrawTarget* fLastDrawTarget; | 196 GrDrawTarget* fLastDrawTarget; |
195 | 197 |
196 typedef GrSurface INHERITED; | 198 typedef GrSurface INHERITED; |
197 }; | 199 }; |
198 | 200 |
199 | 201 |
200 #endif | 202 #endif |
OLD | NEW |