Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 existing optimizations (i.e., to actually have the pattern | 50 existing optimizations (i.e., to actually have the pattern |
| 51 appear in an .skp we have to disable the optimization). Call right | 51 appear in an .skp we have to disable the optimization). Call right |
| 52 after 'beginRecording'. | 52 after 'beginRecording'. |
| 53 */ | 53 */ |
| 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 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 61 friend class Picture; | |
|
reed1
2014/06/17 18:20:12
Is that really the name? No namespace around it? W
| |
| 62 #endif | |
| 61 friend class SkPictureRecorderReplayTester; // for unit testing | 63 friend class SkPictureRecorderReplayTester; // for unit testing |
| 62 void partialReplay(SkCanvas* canvas) const; | 64 void partialReplay(SkCanvas* canvas) const; |
| 63 | 65 |
| 64 int fWidth; | 66 int fWidth; |
| 65 int fHeight; | 67 int fHeight; |
| 66 SkPictureRecord* fCanvas; // ref counted | 68 SkPictureRecord* fCanvas; // ref counted |
| 67 | 69 |
| 68 typedef SkNoncopyable INHERITED; | 70 typedef SkNoncopyable INHERITED; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 #endif | 73 #endif |
| OLD | NEW |