diff options
author | robertphillips <robertphillips@google.com> | 2015-06-23 06:26:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-23 06:26:08 -0700 |
commit | 702edbd4bc41230902b5fe69d14d15763c27fafe (patch) | |
tree | 7c8f0cef358e47fdb1f6fcf08f9ecf830fcf4bad /tools | |
parent | 0a9af33a929f937e3630cd76c5b36d92344ee06a (diff) |
Propagate SkSurfaceProps to more call sites
Start moving to a world where everyone provides surface properties.
Most notably this exposes a portion of SkSurfaceProps to the C API.
BUG=skia:3934
Review URL: https://codereview.chromium.org/1195003003
Diffstat (limited to 'tools')
-rw-r--r-- | tools/skhello.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp index 9f054342a4..b46ba084ab 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -33,7 +33,8 @@ static void doDraw(SkCanvas* canvas, const SkPaint& paint, const char text[]) { static bool do_surface(int w, int h, const char path[], const char text[], const SkPaint& paint) { - SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(w, h)); + SkSurfaceProps props(0, kUnknown_SkPixelGeometry); + SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(w, h, &props)); doDraw(surface->getCanvas(), paint, text); SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); |