OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "OverView.h" | 8 #include "OverView.h" |
9 #include "SampleCode.h" | 9 #include "SampleCode.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 SkPoint loc = this->start(); | 166 SkPoint loc = this->start(); |
167 for (int i = 0; i < fCount; ++i) { | 167 for (int i = 0; i < fCount; ++i) { |
168 if (draw_this_name(fNames[i], fMatchStr)) { | 168 if (draw_this_name(fNames[i], fMatchStr)) { |
169 canvas->drawRect(this->bounds(loc), paint); | 169 canvas->drawRect(this->bounds(loc), paint); |
170 canvas->drawText(fNames[i].c_str(), fNames[i].size(), loc.x(), loc.y
(), fNamePaint); | 170 canvas->drawText(fNames[i].c_str(), fNames[i].size(), loc.x(), loc.y
(), fNamePaint); |
171 this->next(&loc); | 171 this->next(&loc); |
172 } | 172 } |
173 } | 173 } |
174 } | 174 } |
175 | |
OLD | NEW |