| 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 #include "SkDebugger.h" | 9 #include "SkDebugger.h" |
| 10 #include "SkPictureRecorder.h" |
| 10 #include "SkString.h" | 11 #include "SkString.h" |
| 11 | 12 |
| 12 | 13 |
| 13 SkDebugger::SkDebugger() { | 14 SkDebugger::SkDebugger() { |
| 14 // Create this some other dynamic way? | 15 // Create this some other dynamic way? |
| 15 fDebugCanvas = new SkDebugCanvas(100, 100); | 16 fDebugCanvas = new SkDebugCanvas(100, 100); |
| 16 fPicture = NULL; | 17 fPicture = NULL; |
| 17 fPictureWidth = 0; | 18 fPictureWidth = 0; |
| 18 fPictureHeight = 0; | 19 fPictureHeight = 0; |
| 19 fIndex = 0; | 20 fIndex = 0; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 overview->insert(0, totalStr); | 141 overview->insert(0, totalStr); |
| 141 | 142 |
| 142 overview->append("<br/>"); | 143 overview->append("<br/>"); |
| 143 overview->append("SkPicture Width: "); | 144 overview->append("SkPicture Width: "); |
| 144 overview->appendS32(pictureWidth()); | 145 overview->appendS32(pictureWidth()); |
| 145 overview->append("px<br/>"); | 146 overview->append("px<br/>"); |
| 146 overview->append("SkPicture Height: "); | 147 overview->append("SkPicture Height: "); |
| 147 overview->appendS32(pictureHeight()); | 148 overview->appendS32(pictureHeight()); |
| 148 overview->append("px"); | 149 overview->append("px"); |
| 149 } | 150 } |
| OLD | NEW |