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

Side by Side Diff: src/ports/SkScalerContext_win_dw.h

Issue 2075913002: Revert of Support pixel antialising in DirectWrite. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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/ports/SkFontMgr_win_dw.cpp ('k') | src/ports/SkScalerContext_win_dw.cpp » ('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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef SkScalarContext_win_dw_DEFINED 8 #ifndef SkScalarContext_win_dw_DEFINED
9 #define SkScalarContext_win_dw_DEFINED 9 #define SkScalarContext_win_dw_DEFINED
10 10
11 #include "SkScalar.h" 11 #include "SkScalar.h"
12 #include "SkScalerContext.h" 12 #include "SkScalerContext.h"
13 #include "SkTypeface_win_dw.h" 13 #include "SkTypeface_win_dw.h"
14 #include "SkTypes.h" 14 #include "SkTypes.h"
15 15
16 #include <dwrite.h> 16 #include <dwrite.h>
17 #if SK_HAS_DWRITE_2_H 17 #if SK_HAS_DWRITE_2_H
18 # include <dwrite_2.h> 18 #include <dwrite_2.h>
19 #endif 19 #endif
20 20
21 class SkGlyph; 21 class SkGlyph;
22 class SkDescriptor; 22 class SkDescriptor;
23 23
24 class SkScalerContext_DW : public SkScalerContext { 24 class SkScalerContext_DW : public SkScalerContext {
25 public: 25 public:
26 SkScalerContext_DW(DWriteFontTypeface*, const SkScalerContextEffects&, const SkDescriptor*); 26 SkScalerContext_DW(DWriteFontTypeface*, const SkScalerContextEffects&, const SkDescriptor*);
27 virtual ~SkScalerContext_DW(); 27 virtual ~SkScalerContext_DW();
28 28
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 /** The text size to render with. */ 69 /** The text size to render with. */
70 SkScalar fTextSizeRender; 70 SkScalar fTextSizeRender;
71 /** The text size to measure with. */ 71 /** The text size to measure with. */
72 SkScalar fTextSizeMeasure; 72 SkScalar fTextSizeMeasure;
73 SkAutoTUnref<DWriteFontTypeface> fTypeface; 73 SkAutoTUnref<DWriteFontTypeface> fTypeface;
74 int fGlyphCount; 74 int fGlyphCount;
75 DWRITE_RENDERING_MODE fRenderingMode; 75 DWRITE_RENDERING_MODE fRenderingMode;
76 DWRITE_TEXTURE_TYPE fTextureType; 76 DWRITE_TEXTURE_TYPE fTextureType;
77 DWRITE_MEASURING_MODE fMeasuringMode; 77 DWRITE_MEASURING_MODE fMeasuringMode;
78 #if SK_HAS_DWRITE_2_H 78 #if SK_HAS_DWRITE_2_H
79 DWRITE_TEXT_ANTIALIAS_MODE fAntiAliasMode; 79 SkTScopedComPtr<IDWriteFactory2> fFactory2;
80 DWRITE_GRID_FIT_MODE fGridFitMode; 80 bool fIsColorFont;
81 #endif 81 #endif
82 bool fIsColorFont;
83 }; 82 };
84 83
85 #endif 84 #endif
OLDNEW
« no previous file with comments | « src/ports/SkFontMgr_win_dw.cpp ('k') | src/ports/SkScalerContext_win_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698