OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #include "SkLayer.h" | 7 #include "SkLayer.h" |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 | 9 |
11 //#define DEBUG_DRAW_LAYER_BOUNDS | 10 //#define DEBUG_DRAW_LAYER_BOUNDS |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #endif | 220 #endif |
222 | 221 |
223 int count = this->countChildren(); | 222 int count = this->countChildren(); |
224 if (count > 0) { | 223 if (count > 0) { |
225 canvas->concat(this->getChildrenMatrix()); | 224 canvas->concat(this->getChildrenMatrix()); |
226 for (int i = 0; i < count; i++) { | 225 for (int i = 0; i < count; i++) { |
227 this->getChild(i)->draw(canvas, opacity); | 226 this->getChild(i)->draw(canvas, opacity); |
228 } | 227 } |
229 } | 228 } |
230 } | 229 } |
OLD | NEW |