Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Side by Side Diff: src/core/SkBitmapDevice.cpp

Issue 2396953002: Revert[8] "replace SkXfermode obj with SkBlendMode enum in paints" (Closed)
Patch Set: add tmp virtual to unroll legacy arithmodes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/c/sk_paint.cpp ('k') | src/core/SkBlendModePriv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/c/sk_paint.cpp ('k') | src/core/SkBlendModePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698