| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void internalOnly_EnableOpts(bool enableOpts); | 54 void internalOnly_EnableOpts(bool enableOpts); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 /** Replay the current (partially recorded) operation stream into | 57 /** Replay the current (partially recorded) operation stream into |
| 58 canvas. This call doesn't close the current recording. | 58 canvas. This call doesn't close the current recording. |
| 59 */ | 59 */ |
| 60 friend class AndroidPicture; | 60 friend class AndroidPicture; |
| 61 friend class SkPictureRecorderReplayTester; // for unit testing | 61 friend class SkPictureRecorderReplayTester; // for unit testing |
| 62 void partialReplay(SkCanvas* canvas) const; | 62 void partialReplay(SkCanvas* canvas) const; |
| 63 | 63 |
| 64 SkAutoTUnref<SkPicture> fPicture; | 64 int fWidth; |
| 65 int fHeight; |
| 65 SkPictureRecord* fCanvas; // ref counted | 66 SkPictureRecord* fCanvas; // ref counted |
| 66 | 67 |
| 67 typedef SkNoncopyable INHERITED; | 68 typedef SkNoncopyable INHERITED; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 #endif | 71 #endif |
| OLD | NEW |