| 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 "SkBoundable.h" | 10 #include "SkBoundable.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 void SkBoundable::enableBounder() { | 37 void SkBoundable::enableBounder() { |
| 38 fBounds.fLeft = 0; | 38 fBounds.fLeft = 0; |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 SkBoundableAuto::SkBoundableAuto(SkBoundable* boundable, | 42 SkBoundableAuto::SkBoundableAuto(SkBoundable* boundable, |
| 43 SkAnimateMaker& maker) : fBoundable(boundable), fMaker(maker) { | 43 SkAnimateMaker& maker) : fBoundable(boundable), fMaker(maker) { |
| 44 if (fBoundable->hasBounds()) { | 44 if (fBoundable->hasBounds()) { |
| 45 fMaker.fCanvas->setBounder(&maker.fDisplayList); | 45 // fMaker.fCanvas->setBounder(&maker.fDisplayList); |
| 46 fMaker.fDisplayList.fBounds.setEmpty(); | 46 fMaker.fDisplayList.fBounds.setEmpty(); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 SkBoundableAuto::~SkBoundableAuto() { | 50 SkBoundableAuto::~SkBoundableAuto() { |
| 51 if (fBoundable->hasBounds() == false) | 51 if (fBoundable->hasBounds() == false) |
| 52 return; | 52 return; |
| 53 fMaker.fCanvas->setBounder(NULL); | 53 // fMaker.fCanvas->setBounder(NULL); |
| 54 fBoundable->setBounds(fMaker.fDisplayList.fBounds); | 54 fBoundable->setBounds(fMaker.fDisplayList.fBounds); |
| 55 } | 55 } |
| OLD | NEW |