| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 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 | 9 |
| 10 #include "SkDrawGroup.h" | 10 #include "SkDrawGroup.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 *grandList = &fChildren; | 191 *grandList = &fChildren; |
| 192 return SkDisplayList::SearchForMatch(match, list, parent, found, grandList); | 192 return SkDisplayList::SearchForMatch(match, list, parent, found, grandList); |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool SkGroup::hasEnable() const { | 195 bool SkGroup::hasEnable() const { |
| 196 return true; | 196 return true; |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool SkGroup::ifCondition(SkAnimateMaker& maker, SkDrawable* drawable, | 199 bool SkGroup::ifCondition(SkAnimateMaker& maker, SkDrawable*, |
| 200 SkString& conditionString) { | 200 SkString& conditionString) { |
| 201 if (conditionString.size() == 0) | 201 if (conditionString.size() == 0) |
| 202 return true; | 202 return true; |
| 203 int32_t result; | 203 int32_t result; |
| 204 bool success = SkAnimatorScript::EvaluateInt(maker, this, conditionString.c_
str(), &result); | 204 bool success = SkAnimatorScript::EvaluateInt(maker, this, conditionString.c_
str(), &result); |
| 205 #ifdef SK_DUMP_ENABLED | 205 #ifdef SK_DUMP_ENABLED |
| 206 if (maker.fDumpGConditions) { | 206 if (maker.fDumpGConditions) { |
| 207 SkDebugf("group: "); | 207 SkDebugf("group: "); |
| 208 dumpBase(&maker); | 208 dumpBase(&maker); |
| 209 SkDebugf("condition=%s ", conditionString.c_str()); | 209 SkDebugf("condition=%s ", conditionString.c_str()); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 bool SkSave::draw(SkAnimateMaker& maker) { | 312 bool SkSave::draw(SkAnimateMaker& maker) { |
| 313 maker.fCanvas->save(); | 313 maker.fCanvas->save(); |
| 314 SkPaint* save = maker.fPaint; | 314 SkPaint* save = maker.fPaint; |
| 315 SkPaint local = SkPaint(*maker.fPaint); | 315 SkPaint local = SkPaint(*maker.fPaint); |
| 316 maker.fPaint = &local; | 316 maker.fPaint = &local; |
| 317 bool result = INHERITED::draw(maker); | 317 bool result = INHERITED::draw(maker); |
| 318 maker.fPaint = save; | 318 maker.fPaint = save; |
| 319 maker.fCanvas->restore(); | 319 maker.fCanvas->restore(); |
| 320 return result; | 320 return result; |
| 321 } | 321 } |
| OLD | NEW |