OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #include "GrResourceProvider.h" | 8 #include "GrResourceProvider.h" |
9 | 9 |
10 #include "GrBuffer.h" | 10 #include "GrBuffer.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // FBO. But iOS doesn't allow a stencil-only FBO. It reports uns
upported | 179 // FBO. But iOS doesn't allow a stencil-only FBO. It reports uns
upported |
180 // FBO status. | 180 // FBO status. |
181 this->gpu()->clearStencil(rt); | 181 this->gpu()->clearStencil(rt); |
182 } | 182 } |
183 } | 183 } |
184 } | 184 } |
185 return rt->renderTargetPriv().getStencilAttachment(); | 185 return rt->renderTargetPriv().getStencilAttachment(); |
186 } | 186 } |
187 | 187 |
188 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( | 188 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( |
189 const GrBackendTextureDesc& desc, GrWrapOwnership ownership) { | 189 const GrBackendTextureDesc& desc) { |
190 if (this->isAbandoned()) { | 190 if (this->isAbandoned()) { |
191 return nullptr; | 191 return nullptr; |
192 } | 192 } |
193 return this->gpu()->wrapBackendTextureAsRenderTarget(desc, ownership); | 193 return this->gpu()->wrapBackendTextureAsRenderTarget(desc); |
194 } | 194 } |
OLD | NEW |