| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkCanvasStack.h" | 7 #include "SkCanvasStack.h" |
| 9 | 8 |
| 10 SkCanvasStack::SkCanvasStack(int width, int height) | 9 SkCanvasStack::SkCanvasStack(int width, int height) |
| 11 : INHERITED(width, height) {} | 10 : INHERITED(width, height) {} |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 SkASSERT(fList.count() == fCanvasData.count()); | 95 SkASSERT(fList.count() == fCanvasData.count()); |
| 97 for (int i = 0; i < fList.count(); ++i) { | 96 for (int i = 0; i < fList.count(); ++i) { |
| 98 SkRegion tempRegion; | 97 SkRegion tempRegion; |
| 99 deviceRgn.translate(-fCanvasData[i].origin.x(), | 98 deviceRgn.translate(-fCanvasData[i].origin.x(), |
| 100 -fCanvasData[i].origin.y(), &tempRegion); | 99 -fCanvasData[i].origin.y(), &tempRegion); |
| 101 tempRegion.op(fCanvasData[i].requiredClip, SkRegion::kIntersect_Op); | 100 tempRegion.op(fCanvasData[i].requiredClip, SkRegion::kIntersect_Op); |
| 102 fList[i]->clipRegion(tempRegion, op); | 101 fList[i]->clipRegion(tempRegion, op); |
| 103 } | 102 } |
| 104 this->SkCanvas::onClipRegion(deviceRgn, op); | 103 this->SkCanvas::onClipRegion(deviceRgn, op); |
| 105 } | 104 } |
| OLD | NEW |