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

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

Issue 139943004: Clarify kAutohinting is kForceAutohinting. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Update all platforms. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkScalerContext.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 #include "SkPaint.h" 9 #include "SkPaint.h"
10 #include "SkAnnotation.h" 10 #include "SkAnnotation.h"
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 } 1640 }
1641 } 1641 }
1642 1642
1643 if (paint.isEmbeddedBitmapText()) { 1643 if (paint.isEmbeddedBitmapText()) {
1644 flags |= SkScalerContext::kEmbeddedBitmapText_Flag; 1644 flags |= SkScalerContext::kEmbeddedBitmapText_Flag;
1645 } 1645 }
1646 if (paint.isSubpixelText()) { 1646 if (paint.isSubpixelText()) {
1647 flags |= SkScalerContext::kSubpixelPositioning_Flag; 1647 flags |= SkScalerContext::kSubpixelPositioning_Flag;
1648 } 1648 }
1649 if (paint.isAutohinted()) { 1649 if (paint.isAutohinted()) {
1650 flags |= SkScalerContext::kAutohinting_Flag; 1650 flags |= SkScalerContext::kForceAutohinting_Flag;
1651 } 1651 }
1652 if (paint.isVerticalText()) { 1652 if (paint.isVerticalText()) {
1653 flags |= SkScalerContext::kVertical_Flag; 1653 flags |= SkScalerContext::kVertical_Flag;
1654 } 1654 }
1655 if (paint.getFlags() & SkPaint::kGenA8FromLCD_Flag) { 1655 if (paint.getFlags() & SkPaint::kGenA8FromLCD_Flag) {
1656 flags |= SkScalerContext::kGenA8FromLCD_Flag; 1656 flags |= SkScalerContext::kGenA8FromLCD_Flag;
1657 } 1657 }
1658 rec->fFlags = SkToU16(flags); 1658 rec->fFlags = SkToU16(flags);
1659 1659
1660 // these modify fFlags, so do them after assigning fFlags 1660 // these modify fFlags, so do them after assigning fFlags
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 case SkXfermode::kPlus_Mode: 2577 case SkXfermode::kPlus_Mode:
2578 return 0 == this->getAlpha(); 2578 return 0 == this->getAlpha();
2579 case SkXfermode::kDst_Mode: 2579 case SkXfermode::kDst_Mode:
2580 return true; 2580 return true;
2581 default: 2581 default:
2582 break; 2582 break;
2583 } 2583 }
2584 } 2584 }
2585 return false; 2585 return false;
2586 } 2586 }
OLDNEW
« no previous file with comments | « no previous file | src/core/SkScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698