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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static void StepIterator(SkPictureStateTree::Iterator* iter, SkReader32* rea
der); | 61 static void StepIterator(SkPictureStateTree::Iterator* iter, SkReader32* rea
der); |
62 static void SkipIterTo(SkPictureStateTree::Iterator* iter, | 62 static void SkipIterTo(SkPictureStateTree::Iterator* iter, |
63 SkReader32* reader, uint32_t skipTo); | 63 SkReader32* reader, uint32_t skipTo); |
64 | 64 |
65 static DrawType ReadOpAndSize(SkReader32* reader, uint32_t* size); | 65 static DrawType ReadOpAndSize(SkReader32* reader, uint32_t* size); |
66 | 66 |
67 class AutoResetOpID { | 67 class AutoResetOpID { |
68 public: | 68 public: |
69 AutoResetOpID(SkPicturePlayback* playback) : fPlayback(playback) { } | 69 AutoResetOpID(SkPicturePlayback* playback) : fPlayback(playback) { } |
70 ~AutoResetOpID() { | 70 ~AutoResetOpID() { |
71 if (NULL != fPlayback) { | 71 if (fPlayback) { |
72 fPlayback->resetOpID(); | 72 fPlayback->resetOpID(); |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 private: | 76 private: |
77 SkPicturePlayback* fPlayback; | 77 SkPicturePlayback* fPlayback; |
78 }; | 78 }; |
79 | 79 |
80 private: | 80 private: |
81 typedef SkNoncopyable INHERITED; | 81 typedef SkNoncopyable INHERITED; |
82 }; | 82 }; |
83 | 83 |
84 #endif | 84 #endif |
OLD | NEW |