OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkData.h" | 9 #include "SkData.h" |
10 #include "SkDrawFilter.h" | 10 #include "SkDrawFilter.h" |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 SkRect bounds = this->getBounds(); | 822 SkRect bounds = this->getBounds(); |
823 canvas->saveLayer(&bounds, paint); | 823 canvas->saveLayer(&bounds, paint); |
824 this->draw(canvas, matrix); | 824 this->draw(canvas, matrix); |
825 canvas->restore(); | 825 canvas->restore(); |
826 }; | 826 }; |
827 | 827 |
828 // TODO: single-draw specializations | 828 // TODO: single-draw specializations |
829 | 829 |
830 return fallback_plan(); | 830 return fallback_plan(); |
831 } | 831 } |
| 832 |
| 833 void SkLiteDL::setBounds(const SkRect& bounds) { |
| 834 fBounds = bounds; |
| 835 } |
OLD | NEW |