| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkPictureRecorder_DEFINED | 8 #ifndef SkPictureRecorder_DEFINED |
| 9 #define SkPictureRecorder_DEFINED | 9 #define SkPictureRecorder_DEFINED |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 @param height the height of the cull rect used when recording this pictu
re. | 42 @param height the height of the cull rect used when recording this pictu
re. |
| 43 @param bbhFactory factory to create desired acceleration structure | 43 @param bbhFactory factory to create desired acceleration structure |
| 44 @param recordFlags optional flags that control recording. | 44 @param recordFlags optional flags that control recording. |
| 45 @return the canvas. | 45 @return the canvas. |
| 46 */ | 46 */ |
| 47 SkCanvas* beginRecording(SkScalar width, SkScalar height, | 47 SkCanvas* beginRecording(SkScalar width, SkScalar height, |
| 48 SkBBHFactory* bbhFactory = NULL, | 48 SkBBHFactory* bbhFactory = NULL, |
| 49 uint32_t recordFlags = 0); | 49 uint32_t recordFlags = 0); |
| 50 | 50 |
| 51 // As usual, we have a deprecated old version and a maybe almost working | 51 // As usual, we have a deprecated old version and a maybe almost working |
| 52 // new version. We currently point beginRecording() to | 52 // new version. We currently point beginRecording() to EXPERIMENTAL_beginRe
cording(). |
| 53 // DEPRECATED_beginRecording() unless SK_PICTURE_USE_SK_RECORD is defined, | |
| 54 // then we use EXPERIMENTAL_beginRecording(). | |
| 55 | 53 |
| 56 // Old slower backend. | 54 // Old slower backend. |
| 57 SkCanvas* DEPRECATED_beginRecording(SkScalar width, SkScalar height, | 55 SkCanvas* DEPRECATED_beginRecording(SkScalar width, SkScalar height, |
| 58 SkBBHFactory* bbhFactory = NULL, | 56 SkBBHFactory* bbhFactory = NULL, |
| 59 uint32_t recordFlags = 0); | 57 uint32_t recordFlags = 0); |
| 60 | 58 |
| 61 // New faster backend. | 59 // New faster backend. |
| 62 SkCanvas* EXPERIMENTAL_beginRecording(SkScalar width, SkScalar height, | 60 SkCanvas* EXPERIMENTAL_beginRecording(SkScalar width, SkScalar height, |
| 63 SkBBHFactory* bbhFactory = NULL); | 61 SkBBHFactory* bbhFactory = NULL); |
| 64 | 62 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 SkAutoTUnref<SkPictureRecord> fPictureRecord; // beginRecording() | 100 SkAutoTUnref<SkPictureRecord> fPictureRecord; // beginRecording() |
| 103 SkAutoTUnref<SkRecorder> fRecorder; // EXPERIMENTAL_beginRecordin
g() | 101 SkAutoTUnref<SkRecorder> fRecorder; // EXPERIMENTAL_beginRecordin
g() |
| 104 | 102 |
| 105 // Used by EXPERIMENTAL_beginRecording(). | 103 // Used by EXPERIMENTAL_beginRecording(). |
| 106 SkAutoTDelete<SkRecord> fRecord; | 104 SkAutoTDelete<SkRecord> fRecord; |
| 107 | 105 |
| 108 typedef SkNoncopyable INHERITED; | 106 typedef SkNoncopyable INHERITED; |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 #endif | 109 #endif |
| OLD | NEW |