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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 /** Enable/disable all the picture recording optimizations (i.e., | 49 /** Enable/disable all the picture recording optimizations (i.e., |
50 those in SkPictureRecord). It is mainly intended for testing the | 50 those in SkPictureRecord). It is mainly intended for testing the |
51 existing optimizations (i.e., to actually have the pattern | 51 existing optimizations (i.e., to actually have the pattern |
52 appear in an .skp we have to disable the optimization). Call right | 52 appear in an .skp we have to disable the optimization). Call right |
53 after 'beginRecording'. | 53 after 'beginRecording'. |
54 */ | 54 */ |
55 void internalOnly_EnableOpts(bool enableOpts); | 55 void internalOnly_EnableOpts(bool enableOpts); |
56 | 56 |
57 private: | 57 private: |
58 #ifdef SK_BUILD_FOR_ANDROID | |
59 /** Replay the current (partially recorded) operation stream into | 58 /** Replay the current (partially recorded) operation stream into |
60 canvas. This call doesn't close the current recording. | 59 canvas. This call doesn't close the current recording. |
61 */ | 60 */ |
62 friend class AndroidPicture; | 61 friend class AndroidPicture; |
63 friend class SkPictureRecorderReplayTester; // for unit testing | 62 friend class SkPictureRecorderReplayTester; // for unit testing |
64 void partialReplay(SkCanvas* canvas) const; | 63 void partialReplay(SkCanvas* canvas) const; |
65 #endif | |
66 | 64 |
67 SkAutoTUnref<SkPicture> fPicture; | 65 SkAutoTUnref<SkPicture> fPicture; |
68 SkPictureRecord* fCanvas; // ref counted | 66 SkPictureRecord* fCanvas; // ref counted |
69 | 67 |
70 typedef SkNoncopyable INHERITED; | 68 typedef SkNoncopyable INHERITED; |
71 }; | 69 }; |
72 | 70 |
73 #endif | 71 #endif |
OLD | NEW |