blob: a22cf5df145637021cbf918577a3381cf1501356 [file] [log] [blame]
robertphillips@google.com770963f2014-04-18 18:04:41 +00001/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkPictureRecorder.h"
9
10SkCanvas* SkPictureRecorder::beginRecording(int width, int height,
11 SkBBHFactory* bbhFactory /* = NULL */,
12 uint32_t recordFlags /* = 0 */) {
13 fPicture.reset(SkNEW(SkPicture));
14 return fPicture->beginRecording(width, height, bbhFactory, recordFlags);
15}