OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 8 |
9 | 9 |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 if (NULL != fOverdrawXfermode.get()) { | 71 if (NULL != fOverdrawXfermode.get()) { |
72 paint->setAntiAlias(false); | 72 paint->setAntiAlias(false); |
73 paint->setXfermode(fOverdrawXfermode.get()); | 73 paint->setXfermode(fOverdrawXfermode.get()); |
74 } | 74 } |
75 | 75 |
76 if (fOverrideFilterQuality) { | 76 if (fOverrideFilterQuality) { |
77 paint->setFilterQuality(fFilterQuality); | 77 paint->setFilterQuality(fFilterQuality); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, const S
kPaint* paint) { | 81 void onDrawPicture(const SkPicture* picture, |
| 82 const SkMatrix* matrix, |
| 83 const SkPaint* paint) override { |
82 // We need to replay the picture onto this canvas in order to filter its
internal paints. | 84 // We need to replay the picture onto this canvas in order to filter its
internal paints. |
83 this->SkCanvas::onDrawPicture(picture, matrix, paint); | 85 this->SkCanvas::onDrawPicture(picture, matrix, paint); |
84 } | 86 } |
85 | 87 |
86 private: | 88 private: |
87 SkAutoTUnref<SkXfermode> fOverdrawXfermode; | 89 SkAutoTUnref<SkXfermode> fOverdrawXfermode; |
88 | 90 |
89 bool fOverrideFilterQuality; | 91 bool fOverrideFilterQuality; |
90 SkFilterQuality fFilterQuality; | 92 SkFilterQuality fFilterQuality; |
91 | 93 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 } | 663 } |
662 | 664 |
663 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 665 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
664 if (fCalledAddStackData) { | 666 if (fCalledAddStackData) { |
665 fClipStackData.appendf("<br>"); | 667 fClipStackData.appendf("<br>"); |
666 addPathData(devPath, "pathOut"); | 668 addPathData(devPath, "pathOut"); |
667 return true; | 669 return true; |
668 } | 670 } |
669 return false; | 671 return false; |
670 } | 672 } |
OLD | NEW |