| Index: src/gpu/GrGpu.cpp
|
| diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
|
| index d7d4ae7fd481f29eca1b3806f007cc7c4bc539e0..32abfc814f7ef51c2af89d301b2e2f9ae6f39ed5 100644
|
| --- a/src/gpu/GrGpu.cpp
|
| +++ b/src/gpu/GrGpu.cpp
|
| @@ -16,7 +16,7 @@
|
| #include "GrIndexBuffer.h"
|
| #include "GrResourceCache.h"
|
| #include "GrRenderTargetPriv.h"
|
| -#include "GrStencilBuffer.h"
|
| +#include "GrStencilAttachment.h"
|
| #include "GrVertexBuffer.h"
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| @@ -89,8 +89,8 @@ bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) {
|
| }
|
| #endif
|
|
|
| - GrStencilBuffer::ComputeSharedStencilBufferKey(width, height, rt->numSamples(), &sbKey);
|
| - SkAutoTUnref<GrStencilBuffer> sb(static_cast<GrStencilBuffer*>(
|
| + GrStencilAttachment::ComputeSharedStencilAttachmentKey(width, height, rt->numSamples(), &sbKey);
|
| + SkAutoTUnref<GrStencilAttachment> sb(static_cast<GrStencilAttachment*>(
|
| this->getContext()->getResourceCache()->findAndRefUniqueResource(sbKey)));
|
| if (sb) {
|
| if (this->attachStencilBufferToRenderTarget(sb, rt)) {
|
| @@ -109,7 +109,7 @@ bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) {
|
| // FBO. But iOS doesn't allow a stencil-only FBO. It reports unsupported
|
| // FBO status.
|
| this->clearStencil(rt);
|
| - GrStencilBuffer* sb = rt->renderTargetPriv().getStencilBuffer();
|
| + GrStencilAttachment* sb = rt->renderTargetPriv().getStencilBuffer();
|
| sb->resourcePriv().setUniqueKey(sbKey);
|
| return true;
|
| } else {
|
|
|