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 |
11 | 11 |
12 #include "GrGLIRect.h" | 12 #include "GrGLIRect.h" |
13 #include "GrRenderTarget.h" | 13 #include "GrRenderTarget.h" |
14 #include "SkScalar.h" | 14 #include "SkScalar.h" |
15 | 15 |
16 class GrGLGpu; | 16 class GrGLGpu; |
17 class GrGLStencilAttachment; | 17 class GrGLStencilAttachment; |
18 | 18 |
19 class GrGLRenderTarget : public GrRenderTarget { | 19 class GrGLRenderTarget : public GrRenderTarget { |
20 public: | 20 public: |
| 21 GrRenderTarget* arrgh() override { return this; } |
| 22 |
21 // set fTexFBOID to this value to indicate that it is multisampled but | 23 // set fTexFBOID to this value to indicate that it is multisampled but |
22 // Gr doesn't know how to resolve it. | 24 // Gr doesn't know how to resolve it. |
23 enum { kUnresolvableFBOID = 0 }; | 25 enum { kUnresolvableFBOID = 0 }; |
24 | 26 |
25 struct IDDesc { | 27 struct IDDesc { |
26 GrGLuint fRTFBOID; | 28 GrGLuint fRTFBOID; |
27 GrGLuint fTexFBOID; | 29 GrGLuint fTexFBOID; |
28 GrGLuint fMSColorRenderbufferID; | 30 GrGLuint fMSColorRenderbufferID; |
29 GrGpuResource::LifeCycle fLifeCycle; | 31 GrGpuResource::LifeCycle fLifeCycle; |
30 GrRenderTarget::SampleConfig fSampleConfig; | 32 GrRenderTarget::SampleConfig fSampleConfig; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 size_t fGpuMemorySize; | 134 size_t fGpuMemorySize; |
133 | 135 |
134 // True if sample locations colocated at pixel center are currently in use,
false if default | 136 // True if sample locations colocated at pixel center are currently in use,
false if default |
135 // sample locations are currently in use. | 137 // sample locations are currently in use. |
136 bool fUsesColocatedSampleLocations; | 138 bool fUsesColocatedSampleLocations; |
137 | 139 |
138 typedef GrRenderTarget INHERITED; | 140 typedef GrRenderTarget INHERITED; |
139 }; | 141 }; |
140 | 142 |
141 #endif | 143 #endif |
OLD | NEW |