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

Side by Side Diff: src/core/SkGlyphCache.h

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@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/core/SkFilterProc.cpp ('k') | src/core/SkGlyphCache.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 4 * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef SkGlyphCache_DEFINED 7 #ifndef SkGlyphCache_DEFINED
8 #define SkGlyphCache_DEFINED 8 #define SkGlyphCache_DEFINED
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // The id arg is a combined id generated by MakeID. 235 // The id arg is a combined id generated by MakeID.
236 CharGlyphRec* getCharGlyphRec(PackedUnicharID id); 236 CharGlyphRec* getCharGlyphRec(PackedUnicharID id);
237 237
238 void invokeAndRemoveAuxProcs(); 238 void invokeAndRemoveAuxProcs();
239 239
240 inline static SkGlyphCache* FindTail(SkGlyphCache* head); 240 inline static SkGlyphCache* FindTail(SkGlyphCache* head);
241 241
242 static void OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scal e, 242 static void OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scal e,
243 SkScalar xPos, SkScalar* array, int* count); 243 SkScalar xPos, SkScalar* array, int* count);
244 static void AddInterval(SkScalar val, SkGlyph::Intercept* intercept); 244 static void AddInterval(SkScalar val, SkGlyph::Intercept* intercept);
245 static void AddPoints(const SkPoint* pts, int ptCount, const SkScalar bounds [2], 245 static void AddPoints(const SkPoint* pts, int ptCount, const SkScalar bounds [2],
246 bool yAxis, SkGlyph::Intercept* intercept); 246 bool yAxis, SkGlyph::Intercept* intercept);
247 static void AddLine(const SkPoint pts[2], SkScalar axis, bool yAxis, 247 static void AddLine(const SkPoint pts[2], SkScalar axis, bool yAxis,
248 SkGlyph::Intercept* intercept); 248 SkGlyph::Intercept* intercept);
249 static void AddQuad(const SkPoint pts[2], SkScalar axis, bool yAxis, 249 static void AddQuad(const SkPoint pts[2], SkScalar axis, bool yAxis,
250 SkGlyph::Intercept* intercept); 250 SkGlyph::Intercept* intercept);
251 static void AddCubic(const SkPoint pts[3], SkScalar axis, bool yAxis, 251 static void AddCubic(const SkPoint pts[3], SkScalar axis, bool yAxis,
252 SkGlyph::Intercept* intercept); 252 SkGlyph::Intercept* intercept);
253 static const SkGlyph::Intercept* MatchBounds(const SkGlyph* glyph, 253 static const SkGlyph::Intercept* MatchBounds(const SkGlyph* glyph,
254 const SkScalar bounds[2]); 254 const SkScalar bounds[2]);
255 255
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 SkAutoGlyphCacheNoGamma(const SkPaint& paint, 302 SkAutoGlyphCacheNoGamma(const SkPaint& paint,
303 const SkSurfaceProps* surfaceProps, 303 const SkSurfaceProps* surfaceProps,
304 const SkMatrix* matrix) 304 const SkMatrix* matrix)
305 : SkAutoGlyphCache(paint, surfaceProps, SkPaint::FakeGamma::Off, matrix) 305 : SkAutoGlyphCache(paint, surfaceProps, SkPaint::FakeGamma::Off, matrix)
306 {} 306 {}
307 }; 307 };
308 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) 308 #define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache)
309 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm a) 309 #define SkAutoGlyphCacheNoGamma(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCacheNoGamm a)
310 310
311 #endif 311 #endif
OLDNEW
« no previous file with comments | « src/core/SkFilterProc.cpp ('k') | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698