Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 5a861d49232625d722d6797b06512292449ebbfc..bdbd041bed6f336be71a4e4eac09159419bb7214 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -443,7 +443,6 @@ GrRenderTarget* GrGLGpu::onWrapBackendRenderTarget(const GrBackendRenderTargetDe |
if (wrapDesc.fStencilBits) { |
GrGLStencilBuffer::IDDesc sbDesc; |
robertphillips
2015/02/19 16:39:26
Is this next line needed anymore ?
bsalomon
2015/02/19 16:54:55
Acknowledged.
|
sbDesc.fRenderbufferID = 0; |
- sbDesc.fLifeCycle = GrGpuResource::kWrapped_LifeCycle; |
GrGLStencilBuffer::Format format; |
format.fInternalFormat = GrGLStencilBuffer::kUnknownInternalFormat; |
format.fPacked = false; |
@@ -1128,8 +1127,7 @@ void inline get_stencil_rb_sizes(const GrGLInterface* gl, |
} |
} |
-bool GrGLGpu::createStencilBufferForRenderTarget(GrRenderTarget* rt, bool budgeted, int width, |
- int height) { |
+bool GrGLGpu::createStencilBufferForRenderTarget(GrRenderTarget* rt, int width, int height) { |
// All internally created RTs are also textures. We don't create |
// SBs for a client's standalone RT (that is a RT that isn't also a texture). |
SkASSERT(rt->asTexture()); |
@@ -1139,8 +1137,6 @@ bool GrGLGpu::createStencilBufferForRenderTarget(GrRenderTarget* rt, bool budget |
int samples = rt->numSamples(); |
GrGLStencilBuffer::IDDesc sbDesc; |
robertphillips
2015/02/19 16:39:26
same here ?
bsalomon
2015/02/19 16:54:55
Acknowledged.
|
sbDesc.fRenderbufferID = 0; |
- sbDesc.fLifeCycle = budgeted ? GrGpuResource::kCached_LifeCycle |
- : GrGpuResource::kUncached_LifeCycle; |
int stencilFmtCnt = this->glCaps().stencilFormats().count(); |
for (int i = 0; i < stencilFmtCnt; ++i) { |