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

Side by Side Diff: ui/gfx/font_render_params.cc

Issue 1063603003: Remove obsolete for_web_contents parameter in FontRenderParamsQuery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete for_web_contents parameter in FontRenderParamsQuery. Created 5 years, 8 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 | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/font_render_params.h" 5 #include "ui/gfx/font_render_params.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace gfx { 9 namespace gfx {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 return SkFontHost::kHorizontal_LCDOrientation; 47 return SkFontHost::kHorizontal_LCDOrientation;
48 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VRGB: 48 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VRGB:
49 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VBGR: 49 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VBGR:
50 return SkFontHost::kVertical_LCDOrientation; 50 return SkFontHost::kVertical_LCDOrientation;
51 } 51 }
52 52
53 NOTREACHED(); 53 NOTREACHED();
54 return SkFontHost::kHorizontal_LCDOrientation; 54 return SkFontHost::kHorizontal_LCDOrientation;
55 } 55 }
56 56
57 FontRenderParamsQuery::FontRenderParamsQuery(bool for_web_contents) 57 FontRenderParamsQuery::FontRenderParamsQuery()
58 : for_web_contents(for_web_contents), 58 : pixel_size(0),
59 pixel_size(0),
60 point_size(0), 59 point_size(0),
61 style(-1), 60 style(-1),
62 device_scale_factor(0) { 61 device_scale_factor(0) {
63 } 62 }
64 63
65 FontRenderParamsQuery::~FontRenderParamsQuery() {} 64 FontRenderParamsQuery::~FontRenderParamsQuery() {}
66 65
67 } // namespace gfx 66 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698