| 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 #include "SkView.h" | 8 #include "SkView.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 | 10 |
| 11 SK_DEFINE_INST_COUNT(SkView::Artist) | |
| 12 SK_DEFINE_INST_COUNT(SkView::Layout) | |
| 13 | |
| 14 //////////////////////////////////////////////////////////////////////// | 11 //////////////////////////////////////////////////////////////////////// |
| 15 | 12 |
| 16 SkView::SkView(uint32_t flags) : fFlags(SkToU8(flags)) | 13 SkView::SkView(uint32_t flags) : fFlags(SkToU8(flags)) |
| 17 { | 14 { |
| 18 fWidth = fHeight = 0; | 15 fWidth = fHeight = 0; |
| 19 fLoc.set(0, 0); | 16 fLoc.set(0, 0); |
| 20 fParent = fFirstChild = fNextSibling = fPrevSibling = NULL; | 17 fParent = fFirstChild = fNextSibling = fPrevSibling = NULL; |
| 21 fMatrix.setIdentity(); | 18 fMatrix.setIdentity(); |
| 22 fContainsFocus = 0; | 19 fContainsFocus = 0; |
| 23 } | 20 } |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 SkDebugf(" />\n"); | 834 SkDebugf(" />\n"); |
| 838 } | 835 } |
| 839 } | 836 } |
| 840 | 837 |
| 841 void SkView::dump(bool recurse) const | 838 void SkView::dump(bool recurse) const |
| 842 { | 839 { |
| 843 dumpview(this, 0, recurse); | 840 dumpview(this, 0, recurse); |
| 844 } | 841 } |
| 845 | 842 |
| 846 #endif | 843 #endif |
| OLD | NEW |