Use a single stencil buffer for a given width,height,samplecount
Review URL: http://codereview.appspot.com/4854044/
git-svn-id: http://skia.googlecode.com/svn/trunk@2061 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrRenderTarget.h b/gpu/include/GrRenderTarget.h
index 13b1a3a..6fa9f0f 100644
--- a/gpu/include/GrRenderTarget.h
+++ b/gpu/include/GrRenderTarget.h
@@ -32,8 +32,8 @@
* that wrap externally created render targets.
*/
class GrRenderTarget : public GrResource {
-
public:
+
/**
* @return the width of the rendertarget
*/
@@ -177,8 +177,7 @@
, fAllocatedWidth(allocatedWidth)
, fAllocatedHeight(allocatedHeight)
, fConfig(config)
- , fSampleCnt(sampleCnt)
- {
+ , fSampleCnt(sampleCnt) {
fResolveRect.setLargestInverted();
}
@@ -193,17 +192,16 @@
fTexture = NULL;
}
- GrStencilBuffer* fStencilBuffer;
-
private:
- GrTexture* fTexture; // not ref'ed
- int fWidth;
- int fHeight;
- int fAllocatedWidth;
- int fAllocatedHeight;
- GrPixelConfig fConfig;
- int fSampleCnt;
- GrIRect fResolveRect;
+ GrStencilBuffer* fStencilBuffer;
+ GrTexture* fTexture; // not ref'ed
+ int fWidth;
+ int fHeight;
+ int fAllocatedWidth;
+ int fAllocatedHeight;
+ GrPixelConfig fConfig;
+ int fSampleCnt;
+ GrIRect fResolveRect;
typedef GrResource INHERITED;
};