fast return if no part of the paint gets replaced
git-svn-id: http://skia.googlecode.com/svn/trunk@1088 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
9283b583ab
commit
3c1225bee4
@ -35,6 +35,9 @@ void SkLayerDrawLooper::init(SkCanvas* canvas) {
|
|||||||
|
|
||||||
void SkLayerDrawLooper::ApplyBits(SkPaint* dst, const SkPaint& src,
|
void SkLayerDrawLooper::ApplyBits(SkPaint* dst, const SkPaint& src,
|
||||||
BitFlags bits) {
|
BitFlags bits) {
|
||||||
|
if (0 == bits) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (kEntirePaint_Bits == bits) {
|
if (kEntirePaint_Bits == bits) {
|
||||||
*dst = src;
|
*dst = src;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user