diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-10 08:44:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-10 12:47:25 +0000 |
commit | 65048139bd26c8edbc6796f220e79b6c848151d7 (patch) | |
tree | 3870d39758c3bd26843c754c3d491999632528d2 /src/gpu/GrTextureRenderTargetProxy.cpp | |
parent | 2ef3b0fe3a02513cf0fea519bb67027a6809b7a8 (diff) |
Remove accessRenderTarget calls in service of binding stencil buffer
Change-Id: Ifca6e21c619a0433ecf0b8699d92661f8c3068a8
Reviewed-on: https://skia-review.googlesource.com/31243
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrTextureRenderTargetProxy.cpp')
-rw-r--r-- | src/gpu/GrTextureRenderTargetProxy.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrTextureRenderTargetProxy.cpp b/src/gpu/GrTextureRenderTargetProxy.cpp index 1bb0e239fd..4a4d79c531 100644 --- a/src/gpu/GrTextureRenderTargetProxy.cpp +++ b/src/gpu/GrTextureRenderTargetProxy.cpp @@ -48,8 +48,8 @@ size_t GrTextureRenderTargetProxy::onUninstantiatedGpuMemorySize() const { bool GrTextureRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { static constexpr GrSurfaceFlags kFlags = kRenderTarget_GrSurfaceFlag; - if (!this->instantiateImpl(resourceProvider, this->numStencilSamples(), kFlags, - this->isMipMapped(), this->mipColorMode())) { + if (!this->instantiateImpl(resourceProvider, this->numStencilSamples(), this->needsStencil(), + kFlags, this->isMipMapped(), this->mipColorMode())) { return false; } SkASSERT(fTarget->asRenderTarget()); @@ -63,8 +63,8 @@ sk_sp<GrSurface> GrTextureRenderTargetProxy::createSurface( static constexpr GrSurfaceFlags kFlags = kRenderTarget_GrSurfaceFlag; sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, this->numStencilSamples(), - kFlags, this->isMipMapped(), - this->mipColorMode()); + this->needsStencil(), kFlags, + this->isMipMapped(), this->mipColorMode()); if (!surface) { return nullptr; } |