Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: src/core/SkPicturePlayback.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698