Index: include/core/SkSurface.h |
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h |
index cb5133ae003e4d89de0f2f376b749977aee715f4..68d4702cb51d6f9bfdf8b73d01e1f2d5d3221094 100644 |
--- a/include/core/SkSurface.h |
+++ b/include/core/SkSurface.h |
@@ -77,29 +77,18 @@ |
kDistanceField_TextRenderMode, |
}; |
- enum RenderTargetFlags { |
- kNone_RenderTargetFlag = 0x0, |
- /* |
- * By default a RenderTarget-based surface will be cleared on creation. |
- * Pass in this flag to prevent the clear from happening. |
- */ |
- kDontClear_RenderTargetFlag = 0x01, |
- }; |
- |
/** |
* Return a new surface using the specified render target. |
*/ |
static SkSurface* NewRenderTargetDirect(GrRenderTarget*, |
- TextRenderMode trm = kStandard_TextRenderMode, |
- RenderTargetFlags flags = kNone_RenderTargetFlag); |
+ TextRenderMode trm = kStandard_TextRenderMode); |
/** |
* Return a new surface whose contents will be drawn to an offscreen |
* render target, allocated by the surface. |
*/ |
static SkSurface* NewRenderTarget(GrContext*, const SkImageInfo&, int sampleCount = 0, |
- TextRenderMode trm = kStandard_TextRenderMode, |
- RenderTargetFlags flags = kNone_RenderTargetFlag); |
+ TextRenderMode trm = kStandard_TextRenderMode); |
/** |
* Return a new surface whose contents will be drawn to an offscreen |
@@ -114,8 +103,7 @@ |
* budget. |
*/ |
static SkSurface* NewScratchRenderTarget(GrContext*, const SkImageInfo&, int sampleCount = 0, |
- TextRenderMode trm = kStandard_TextRenderMode, |
- RenderTargetFlags flags = kNone_RenderTargetFlag); |
+ TextRenderMode trm = kStandard_TextRenderMode); |
int width() const { return fWidth; } |
int height() const { return fHeight; } |