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

Side by Side Diff: Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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 | « Source/platform/fonts/WidthIterator.cpp ('k') | Source/platform/fonts/mac/SimpleFontDataMac.mm » ('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 (c) 2006, 2007, 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return *this; 176 return *this;
177 } 177 }
178 178
179 #ifndef NDEBUG 179 #ifndef NDEBUG
180 String FontPlatformData::description() const 180 String FontPlatformData::description() const
181 { 181 {
182 return String(); 182 return String();
183 } 183 }
184 #endif 184 #endif
185 185
186 void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons t 186 void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext*) const
187 { 187 {
188 UNUSED_PARAM(context);
189 paint->setAntiAlias(m_style.useAntiAlias); 188 paint->setAntiAlias(m_style.useAntiAlias);
190 paint->setHinting(static_cast<SkPaint::Hinting>(m_style.hintStyle)); 189 paint->setHinting(static_cast<SkPaint::Hinting>(m_style.hintStyle));
191 paint->setEmbeddedBitmapText(m_style.useBitmaps); 190 paint->setEmbeddedBitmapText(m_style.useBitmaps);
192 paint->setAutohinted(m_style.useAutoHint); 191 paint->setAutohinted(m_style.useAutoHint);
193 if (m_style.useAntiAlias) 192 if (m_style.useAntiAlias)
194 paint->setLCDRenderText(m_style.useSubpixelRendering); 193 paint->setLCDRenderText(m_style.useSubpixelRendering);
195 194
196 // TestRunner specifically toggles the subpixel positioning flag. 195 // TestRunner specifically toggles the subpixel positioning flag.
197 if (RuntimeEnabledFeatures::subpixelFontScalingEnabled() && !isRunningLayout Test()) 196 if (RuntimeEnabledFeatures::subpixelFontScalingEnabled() && !isRunningLayout Test())
198 paint->setSubpixelText(true); 197 paint->setSubpixelText(true);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 if (m_style.useSubpixelRendering == FontRenderStyle::NoPreference) 292 if (m_style.useSubpixelRendering == FontRenderStyle::NoPreference)
294 m_style.useSubpixelRendering = useSkiaSubpixelRendering; 293 m_style.useSubpixelRendering = useSkiaSubpixelRendering;
295 294
296 // TestRunner specifically toggles the subpixel positioning flag. 295 // TestRunner specifically toggles the subpixel positioning flag.
297 if (m_style.useSubpixelPositioning == FontRenderStyle::NoPreference 296 if (m_style.useSubpixelPositioning == FontRenderStyle::NoPreference
298 || isRunningLayoutTest()) 297 || isRunningLayoutTest())
299 m_style.useSubpixelPositioning = useSkiaSubpixelPositioning; 298 m_style.useSubpixelPositioning = useSkiaSubpixelPositioning;
300 } 299 }
301 300
302 } // namespace WebCore 301 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/fonts/WidthIterator.cpp ('k') | Source/platform/fonts/mac/SimpleFontDataMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698