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

Side by Side Diff: src/gpu/GrGlyph.h

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 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 | « src/fonts/SkTestScalerContext.h ('k') | src/ports/SkFontMgr_android_parser.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 2010 Google Inc. 2 * Copyright 2010 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 GrGlyph_DEFINED 8 #ifndef GrGlyph_DEFINED
9 #define GrGlyph_DEFINED 9 #define GrGlyph_DEFINED
10 10
11 #include "GrBatchAtlas.h" 11 #include "GrBatchAtlas.h"
12 #include "GrRect.h" 12 #include "GrRect.h"
13 #include "GrTypes.h" 13 #include "GrTypes.h"
14 14
15 #include "SkChecksum.h" 15 #include "SkChecksum.h"
16 #include "SkFixed.h"
16 #include "SkPath.h" 17 #include "SkPath.h"
17 18
18 class GrPlot; 19 class GrPlot;
19 20
20 /* Need this to be quad-state: 21 /* Need this to be quad-state:
21 - complete w/ image 22 - complete w/ image
22 - just metrics 23 - just metrics
23 - failed to get image, but has metrics 24 - failed to get image, but has metrics
24 - failed to get metrics 25 - failed to get metrics
25 */ 26 */
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) { 95 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) {
95 return glyph.fPackedID; 96 return glyph.fPackedID;
96 } 97 }
97 98
98 static inline uint32_t Hash(GrGlyph::PackedID key) { 99 static inline uint32_t Hash(GrGlyph::PackedID key) {
99 return SkChecksum::Mix(key); 100 return SkChecksum::Mix(key);
100 } 101 }
101 }; 102 };
102 103
103 #endif 104 #endif
OLDNEW
« no previous file with comments | « src/fonts/SkTestScalerContext.h ('k') | src/ports/SkFontMgr_android_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698