diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-18 18:04:41 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-18 18:04:41 +0000 |
commit | 770963f23f4fc313db0fa3bac18b1b8aafb55f17 (patch) | |
tree | e5260b887047621f440fdeca0ff716455d4849b7 /src/core/SkPictureRecorder.cpp | |
parent | 7b8999b5047e059f8dbce2bb24586ac49d928731 (diff) |
Staging for cleanup of SkPicture-related headers
https://codereview.chromium.org/243173002
git-svn-id: http://skia.googlecode.com/svn/trunk@14258 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecorder.cpp')
-rw-r--r-- | src/core/SkPictureRecorder.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp new file mode 100644 index 0000000000..a22cf5df14 --- /dev/null +++ b/src/core/SkPictureRecorder.cpp @@ -0,0 +1,15 @@ +/* + * Copyright 2014 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkPictureRecorder.h" + +SkCanvas* SkPictureRecorder::beginRecording(int width, int height, + SkBBHFactory* bbhFactory /* = NULL */, + uint32_t recordFlags /* = 0 */) { + fPicture.reset(SkNEW(SkPicture)); + return fPicture->beginRecording(width, height, bbhFactory, recordFlags); +} |