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 "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkColor.h" | 9 #include "SkColor.h" |
10 #include "SkFlattenableBuffers.h" | 10 #include "SkFlattenableBuffers.h" |
11 #include "SkLayerDrawLooper.h" | 11 #include "SkLayerDrawLooper.h" |
12 #include "SkString.h" | 12 #include "SkString.h" |
13 #include "SkStringUtils.h" | 13 #include "SkStringUtils.h" |
14 #include "SkUnPreMultiply.h" | 14 #include "SkUnPreMultiply.h" |
15 | 15 |
16 SK_DEFINE_INST_COUNT(SkLayerDrawLooper) | |
17 | |
18 SkLayerDrawLooper::LayerInfo::LayerInfo() { | 16 SkLayerDrawLooper::LayerInfo::LayerInfo() { |
19 fFlagsMask = 0; // ignore our paint flags | 17 fFlagsMask = 0; // ignore our paint flags |
20 fPaintBits = 0; // ignore our paint fields | 18 fPaintBits = 0; // ignore our paint fields |
21 fColorMode = SkXfermode::kDst_Mode; // ignore our color | 19 fColorMode = SkXfermode::kDst_Mode; // ignore our color |
22 fOffset.set(0, 0); | 20 fOffset.set(0, 0); |
23 fPostTranslate = false; | 21 fPostTranslate = false; |
24 } | 22 } |
25 | 23 |
26 SkLayerDrawLooper::SkLayerDrawLooper() | 24 SkLayerDrawLooper::SkLayerDrawLooper() |
27 : fRecs(NULL), | 25 : fRecs(NULL), |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 str->append("true "); | 339 str->append("true "); |
342 } else { | 340 } else { |
343 str->append("false "); | 341 str->append("false "); |
344 } | 342 } |
345 | 343 |
346 rec->fPaint.toString(str); | 344 rec->fPaint.toString(str); |
347 rec = rec->fNext; | 345 rec = rec->fNext; |
348 } | 346 } |
349 } | 347 } |
350 #endif | 348 #endif |
OLD | NEW |