From a8d7f0b13cd4c6d773fcf055fe17db75d260fa05 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Fri, 29 Aug 2014 08:03:56 -0700 Subject: Try out scalar picture sizes This paves the way for removing the 'fTile' parameter from SkPictureShader (although that should be a different CL). If we like this we could also move to providing an entire cull SkRect. R=reed@google.com, mtklein@google.com, fmalita@google.com, fmalita@chromium.org Author: robertphillips@google.com Review URL: https://codereview.chromium.org/513983002 --- gm/pictureshadertile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gm/pictureshadertile.cpp') diff --git a/gm/pictureshadertile.cpp b/gm/pictureshadertile.cpp index 9343da3649..ecea55334b 100644 --- a/gm/pictureshadertile.cpp +++ b/gm/pictureshadertile.cpp @@ -61,9 +61,7 @@ class PictureShaderTileGM : public skiagm::GM { public: PictureShaderTileGM() { SkPictureRecorder recorder; - SkCanvas* pictureCanvas = recorder.beginRecording(SkScalarCeilToInt(kPictureSize), - SkScalarCeilToInt(kPictureSize), - NULL, 0); + SkCanvas* pictureCanvas = recorder.beginRecording(kPictureSize, kPictureSize, NULL, 0); drawScene(pictureCanvas, kPictureSize); SkAutoTUnref picture(recorder.endRecording()); -- cgit v1.2.3