diff options
author | 2014-09-19 05:56:29 -0700 | |
---|---|---|
committer | 2014-09-19 05:56:29 -0700 | |
commit | 65b48952d7253faf44feb91dfe8953295b1600d0 (patch) | |
tree | bcf17542d891fa9716e3abe431a0a306cca20c56 /src/gpu/GrLayerHoister.cpp | |
parent | 3c29c4d36174750a13fc0db1be5584fc47737898 (diff) |
remove RenderTargetFlags -- NewRenderTargetDirect will never clear
BUG=skia:
R=robertphillips@google.com, bsalomon@google.com
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/583043002
Diffstat (limited to 'src/gpu/GrLayerHoister.cpp')
-rw-r--r-- | src/gpu/GrLayerHoister.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp index aa9576b675..ba431d33e9 100644 --- a/src/gpu/GrLayerHoister.cpp +++ b/src/gpu/GrLayerHoister.cpp @@ -143,8 +143,7 @@ void GrLayerHoister::DrawLayers(const SkPicture* picture, // All the atlased layers are rendered into the same GrTexture SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( atlased[0]->texture()->asRenderTarget(), - SkSurface::kStandard_TextRenderMode, - SkSurface::kDontClear_RenderTargetFlag)); + SkSurface::kStandard_TextRenderMode)); SkCanvas* atlasCanvas = surface->getCanvas(); @@ -198,8 +197,7 @@ void GrLayerHoister::DrawLayers(const SkPicture* picture, // Each non-atlased layer has its own GrTexture SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( layer->texture()->asRenderTarget(), - SkSurface::kStandard_TextRenderMode, - SkSurface::kDontClear_RenderTargetFlag)); + SkSurface::kStandard_TextRenderMode)); SkCanvas* layerCanvas = surface->getCanvas(); |