| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 8 |
| 9 | 9 |
| 10 #ifndef SKDEBUGGER_H_ | 10 #ifndef SKDEBUGGER_H_ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 const SkMatrix& getCurrentMatrix() { | 80 const SkMatrix& getCurrentMatrix() { |
| 81 return fDebugCanvas->getCurrentMatrix(); | 81 return fDebugCanvas->getCurrentMatrix(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 const SkIRect& getCurrentClip() { | 84 const SkIRect& getCurrentClip() { |
| 85 return fDebugCanvas->getCurrentClip(); | 85 return fDebugCanvas->getCurrentClip(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 SkRect pictureCull() const { | 88 SkRect pictureCull() const { |
| 89 return NULL == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); | 89 return nullptr == fPicture ? SkRect::MakeEmpty() : fPicture->cullRect(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 int index() { | 92 int index() { |
| 93 return fIndex; | 93 return fIndex; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void setOverdrawViz(bool overDrawViz) { | 96 void setOverdrawViz(bool overDrawViz) { |
| 97 if (fDebugCanvas) { | 97 if (fDebugCanvas) { |
| 98 fDebugCanvas->setOverdrawViz(overDrawViz); | 98 fDebugCanvas->setOverdrawViz(overDrawViz); |
| 99 } | 99 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 SkDebugCanvas* fDebugCanvas; | 126 SkDebugCanvas* fDebugCanvas; |
| 127 SkPicture* fPicture; | 127 SkPicture* fPicture; |
| 128 | 128 |
| 129 int fIndex; | 129 int fIndex; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 | 132 |
| 133 #endif /* SKDEBUGGER_H_ */ | 133 #endif /* SKDEBUGGER_H_ */ |
| OLD | NEW |