Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / core / SkPictureRecorder.cpp
1 /*
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
10 SkCanvas* 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 }