| 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 SkPicturePlayback_DEFINED | 8 #ifndef SkPicturePlayback_DEFINED |
| 9 #define SkPicturePlayback_DEFINED | 9 #define SkPicturePlayback_DEFINED |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const SkPictureData* fPictureData; | 99 const SkPictureData* fPictureData; |
| 100 | 100 |
| 101 // The offset of the current operation when within the draw method | 101 // The offset of the current operation when within the draw method |
| 102 size_t fCurOffset; | 102 size_t fCurOffset; |
| 103 | 103 |
| 104 bool fUseBBH; | 104 bool fUseBBH; |
| 105 size_t fStart; | 105 size_t fStart; |
| 106 size_t fStop; | 106 size_t fStop; |
| 107 PlaybackReplacements* fReplacements; | 107 PlaybackReplacements* fReplacements; |
| 108 | 108 |
| 109 void handleOp(SkReader32* reader, |
| 110 DrawType op, |
| 111 uint32_t size, |
| 112 SkCanvas* canvas, |
| 113 const SkMatrix& initialMatrix); |
| 114 |
| 109 #ifdef SK_DEVELOPER | 115 #ifdef SK_DEVELOPER |
| 110 virtual bool preDraw(int opIndex, int type) { return false; } | 116 virtual bool preDraw(int opIndex, int type) { return false; } |
| 111 virtual void postDraw(int opIndex) { } | 117 virtual void postDraw(int opIndex) { } |
| 112 #endif | 118 #endif |
| 113 | 119 |
| 114 private: | 120 private: |
| 115 typedef SkNoncopyable INHERITED; | 121 typedef SkNoncopyable INHERITED; |
| 116 }; | 122 }; |
| 117 | 123 |
| 118 #endif | 124 #endif |
| OLD | NEW |