Remove allocated size vs content size in textures
Review URL: http://codereview.appspot.com/5373100/
git-svn-id: http://skia.googlecode.com/svn/trunk@2687 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 1baf42e..1e6b420 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -161,8 +161,8 @@
bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) {
GrAssert(NULL == rt->getStencilBuffer());
GrStencilBuffer* sb =
- this->getContext()->findStencilBuffer(rt->allocatedWidth(),
- rt->allocatedHeight(),
+ this->getContext()->findStencilBuffer(rt->width(),
+ rt->height(),
rt->numSamples());
if (NULL != sb) {
rt->setStencilBuffer(sb);
@@ -172,8 +172,8 @@
}
return attached;
}
- if (this->createStencilBufferForRenderTarget(rt, rt->allocatedWidth(),
- rt->allocatedHeight())) {
+ if (this->createStencilBufferForRenderTarget(rt,
+ rt->width(), rt->height())) {
rt->getStencilBuffer()->ref();
rt->getStencilBuffer()->transferToCacheAndLock();