OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 , m_disableDestructionChecks(false) | 125 , m_disableDestructionChecks(false) |
126 #endif | 126 #endif |
127 , m_disabledState(disableContextOrPainting) | 127 , m_disabledState(disableContextOrPainting) |
128 , m_deviceScaleFactor(1.0f) | 128 , m_deviceScaleFactor(1.0f) |
129 , m_regionTrackingMode(RegionTrackingDisabled) | 129 , m_regionTrackingMode(RegionTrackingDisabled) |
130 , m_trackTextRegion(false) | 130 , m_trackTextRegion(false) |
131 , m_accelerated(false) | 131 , m_accelerated(false) |
132 , m_isCertainlyOpaque(true) | 132 , m_isCertainlyOpaque(true) |
133 , m_printing(false) | 133 , m_printing(false) |
134 , m_antialiasHairlineImages(false) | 134 , m_antialiasHairlineImages(false) |
| 135 , m_shouldSmoothFonts(true) |
135 { | 136 { |
136 ASSERT(canvas); | 137 ASSERT(canvas); |
137 | 138 |
138 // FIXME: Do some tests to determine how many states are typically used, and
allocate | 139 // FIXME: Do some tests to determine how many states are typically used, and
allocate |
139 // several here. | 140 // several here. |
140 m_paintStateStack.append(GraphicsContextState::create()); | 141 m_paintStateStack.append(GraphicsContextState::create()); |
141 m_paintState = m_paintStateStack.last().get(); | 142 m_paintState = m_paintStateStack.last().get(); |
142 } | 143 } |
143 | 144 |
144 GraphicsContext::~GraphicsContext() | 145 GraphicsContext::~GraphicsContext() |
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag | 1947 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag |
1947 // being set to true). We need to decide if we respect InterpolationNone | 1948 // being set to true). We need to decide if we respect InterpolationNone |
1948 // being returned from computeInterpolationQuality. | 1949 // being returned from computeInterpolationQuality. |
1949 resampling = InterpolationLow; | 1950 resampling = InterpolationLow; |
1950 } | 1951 } |
1951 resampling = limitInterpolationQuality(this, resampling); | 1952 resampling = limitInterpolationQuality(this, resampling); |
1952 paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling)); | 1953 paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling)); |
1953 } | 1954 } |
1954 | 1955 |
1955 } // namespace blink | 1956 } // namespace blink |
OLD | NEW |