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

Side by Side Diff: include/gpu/SkGr.h

Issue 227593010: Move distance field generation to the glyph cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move GrFontScaler back to public interface Created 6 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 | « include/gpu/GrFontScaler.h ('k') | src/core/SkDistanceFieldGen.h » ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class SkGlyphCache; 76 class SkGlyphCache;
77 77
78 class SkGrFontScaler : public GrFontScaler { 78 class SkGrFontScaler : public GrFontScaler {
79 public: 79 public:
80 explicit SkGrFontScaler(SkGlyphCache* strike); 80 explicit SkGrFontScaler(SkGlyphCache* strike);
81 virtual ~SkGrFontScaler(); 81 virtual ~SkGrFontScaler();
82 82
83 // overrides 83 // overrides
84 virtual const GrKey* getKey(); 84 virtual const GrKey* getKey();
85 virtual GrMaskFormat getMaskFormat(); 85 virtual GrMaskFormat getMaskFormat();
86 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds); 86 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) SK_OVE RRIDE;
87 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, 87 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
88 int rowBytes, void* image); 88 int rowBytes, void* image) SK_OVERRIDE;
89 virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) SK_O VERRIDE;
90 virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,
91 void* image) SK_OVERRIDE;
89 virtual bool getGlyphPath(uint16_t glyphID, SkPath*); 92 virtual bool getGlyphPath(uint16_t glyphID, SkPath*);
90 93
91 private: 94 private:
92 SkGlyphCache* fStrike; 95 SkGlyphCache* fStrike;
93 GrKey* fKey; 96 GrKey* fKey;
94 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); 97 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler);
95 }; 98 };
96 99
97 //////////////////////////////////////////////////////////////////////////////// 100 ////////////////////////////////////////////////////////////////////////////////
98 101
99 #endif 102 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrFontScaler.h ('k') | src/core/SkDistanceFieldGen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698