| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
| 9 #include "SkConfig8888.h" | 9 #include "SkConfig8888.h" |
| 10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 } | 439 } |
| 440 | 440 |
| 441 /////////////////////////////////////////////////////////////////////////////// | 441 /////////////////////////////////////////////////////////////////////////////// |
| 442 | 442 |
| 443 bool SkBitmapDevice::onShouldDisableLCD(const SkPaint& paint) const { | 443 bool SkBitmapDevice::onShouldDisableLCD(const SkPaint& paint) const { |
| 444 if (kN32_SkColorType != fBitmap.colorType() || | 444 if (kN32_SkColorType != fBitmap.colorType() || |
| 445 paint.getRasterizer() || | 445 paint.getRasterizer() || |
| 446 paint.getPathEffect() || | 446 paint.getPathEffect() || |
| 447 paint.isFakeBoldText() || | 447 paint.isFakeBoldText() || |
| 448 paint.getStyle() != SkPaint::kFill_Style || | 448 paint.getStyle() != SkPaint::kFill_Style || |
| 449 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) | 449 !paint.isSrcOver()) |
| 450 { | 450 { |
| 451 return true; | 451 return true; |
| 452 } | 452 } |
| 453 return false; | 453 return false; |
| 454 } | 454 } |
| OLD | NEW |