| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 108 protected: | 108 protected: | 
| 109     explicit SkPicturePlayback(const SkPictInfo& info); | 109     explicit SkPicturePlayback(const SkPictInfo& info); | 
| 110 | 110 | 
| 111     bool parseStream(SkStream*, SkPicture::InstallPixelRefProc); | 111     bool parseStream(SkStream*, SkPicture::InstallPixelRefProc); | 
| 112     bool parseBuffer(SkReadBuffer& buffer); | 112     bool parseBuffer(SkReadBuffer& buffer); | 
| 113 #ifdef SK_DEVELOPER | 113 #ifdef SK_DEVELOPER | 
| 114     virtual bool preDraw(int opIndex, int type); | 114     virtual bool preDraw(int opIndex, int type); | 
| 115     virtual void postDraw(int opIndex); | 115     virtual void postDraw(int opIndex); | 
| 116 #endif | 116 #endif | 
| 117 | 117 | 
| 118     void preLoadBitmaps(const SkTDArray<void*>* results); |  | 
| 119 |  | 
| 120 private: | 118 private: | 
| 121     class TextContainer { | 119     class TextContainer { | 
| 122     public: | 120     public: | 
| 123         size_t length() { return fByteLength; } | 121         size_t length() { return fByteLength; } | 
| 124         const void* text() { return (const void*) fText; } | 122         const void* text() { return (const void*) fText; } | 
| 125         size_t fByteLength; | 123         size_t fByteLength; | 
| 126         const char* fText; | 124         const char* fText; | 
| 127     }; | 125     }; | 
| 128 | 126 | 
| 129     const SkBitmap& getBitmap(SkReader32& reader) { | 127     const SkBitmap& getBitmap(SkReader32& reader) { | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 273 | 271 | 
| 274     const SkPictInfo fInfo; | 272     const SkPictInfo fInfo; | 
| 275 | 273 | 
| 276 #ifdef SK_BUILD_FOR_ANDROID | 274 #ifdef SK_BUILD_FOR_ANDROID | 
| 277     SkMutex fDrawMutex; | 275     SkMutex fDrawMutex; | 
| 278     bool fAbortCurrentPlayback; | 276     bool fAbortCurrentPlayback; | 
| 279 #endif | 277 #endif | 
| 280 }; | 278 }; | 
| 281 | 279 | 
| 282 #endif | 280 #endif | 
| OLD | NEW | 
|---|