Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Side by Side Diff: src/gpu/GrResourceProvider.cpp

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // FBO. But iOS doesn't allow a stencil-only FBO. It reports uns upported 221 // FBO. But iOS doesn't allow a stencil-only FBO. It reports uns upported
222 // FBO status. 222 // FBO status.
223 this->gpu()->clearStencil(rt); 223 this->gpu()->clearStencil(rt);
224 } 224 }
225 } 225 }
226 } 226 }
227 return rt->renderTargetPriv().getStencilAttachment(); 227 return rt->renderTargetPriv().getStencilAttachment();
228 } 228 }
229 229
230 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( 230 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget(
231 const GrBackendTextureDesc& desc, GrWrapOwnership ownership) { 231 const GrBackendTextureDesc& desc, GrWrapOwnership ownership) {
232 if (this->isAbandoned()) { 232 if (this->isAbandoned()) {
233 return nullptr; 233 return nullptr;
234 } 234 }
235 return this->gpu()->wrapBackendTextureAsRenderTarget(desc, ownership); 235 return this->gpu()->wrapBackendTextureAsRenderTarget(desc, ownership);
236 } 236 }
237 237
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698