diff options
author | bsalomon <bsalomon@google.com> | 2015-01-16 07:32:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-16 07:32:33 -0800 |
commit | afe3005be3392e43bc51eb7eb2017eefaed85ad1 (patch) | |
tree | 3b96ec2e3249a928a0e876140bec3bf3e9dbb13f /gm/surface.cpp | |
parent | b50ced703030dfbda4fc3ef5e6ec9a52fc0405f8 (diff) |
Require budget decision when creating a RenderTarget SkSurface.
Restructure SkGpuDevice creation:
*SkSurfaceProps are optional.
*Use SkSurfaceProps to communicate DF text rather than a flag.
*Tell SkGpuDevice::Create whether RT comes from cache or not.
Review URL: https://codereview.chromium.org/848903004
Diffstat (limited to 'gm/surface.cpp')
-rw-r--r-- | gm/surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/surface.cpp b/gm/surface.cpp index 5961a336b8..5a4c09a54d 100644 --- a/gm/surface.cpp +++ b/gm/surface.cpp @@ -33,7 +33,7 @@ static SkSurface* make_surface(GrContext* ctx, const SkImageInfo& info, SkPixelG SkSurfaceProps props(flags, geo); if (ctx) { - return SkSurface::NewRenderTarget(ctx, info, 0, &props); + return SkSurface::NewRenderTarget(ctx, SkSurface::kNo_Budgeted, info, 0, &props); } else { return SkSurface::NewRaster(info, &props); } |