| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef SkPicturePlayback_DEFINED | 8 #ifndef SkPicturePlayback_DEFINED |
| 9 #define SkPicturePlayback_DEFINED | 9 #define SkPicturePlayback_DEFINED |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 bool parseStream(SkStream*, const SkPictInfo&, | 103 bool parseStream(SkStream*, const SkPictInfo&, |
| 104 SkPicture::InstallPixelRefProc); | 104 SkPicture::InstallPixelRefProc); |
| 105 bool parseBuffer(SkReadBuffer& buffer); | 105 bool parseBuffer(SkReadBuffer& buffer); |
| 106 #ifdef SK_DEVELOPER | 106 #ifdef SK_DEVELOPER |
| 107 virtual bool preDraw(int opIndex, int type); | 107 virtual bool preDraw(int opIndex, int type); |
| 108 virtual void postDraw(int opIndex); | 108 virtual void postDraw(int opIndex); |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 void preLoadBitmaps(const SkTDArray<void*>& results); | 111 void preLoadBitmaps(SkCanvas& canvas, const SkTDArray<void*>& results); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 class TextContainer { | 114 class TextContainer { |
| 115 public: | 115 public: |
| 116 size_t length() { return fByteLength; } | 116 size_t length() { return fByteLength; } |
| 117 const void* text() { return (const void*) fText; } | 117 const void* text() { return (const void*) fText; } |
| 118 size_t fByteLength; | 118 size_t fByteLength; |
| 119 const char* fText; | 119 const char* fText; |
| 120 }; | 120 }; |
| 121 | 121 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 SkTypefacePlayback fTFPlayback; | 239 SkTypefacePlayback fTFPlayback; |
| 240 SkFactoryPlayback* fFactoryPlayback; | 240 SkFactoryPlayback* fFactoryPlayback; |
| 241 #ifdef SK_BUILD_FOR_ANDROID | 241 #ifdef SK_BUILD_FOR_ANDROID |
| 242 SkMutex fDrawMutex; | 242 SkMutex fDrawMutex; |
| 243 bool fAbortCurrentPlayback; | 243 bool fAbortCurrentPlayback; |
| 244 #endif | 244 #endif |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 #endif | 247 #endif |
| OLD | NEW |