robertphillips@google.com | 770963f | 2014-04-18 18:04:41 +0000 | [diff] [blame^] | 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 | } |