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

Side by Side Diff: src/gpu/text/GrFontScaler.h

Issue 1985163002: Remove GrFontScaler class (Closed) Base URL: https://chromium.googlesource.com/skia.git@rmkey
Patch Set: remove comments Created 4 years, 7 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2010 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrFontScaler_DEFINED
9 #define GrFontScaler_DEFINED
10
11 #include "GrGlyph.h"
12 #include "GrTypes.h"
13
14 #include "SkDescriptor.h"
15
16 class SkGlyph;
17 class SkPath;
18
19 /*
20 * This is Gr's interface to the host platform's font scaler.
21 *
22 * The client is responsible for instantiating this. The instance is created
23 * for a specific font+size+matrix.
24 */
25 class GrFontScaler final : public SkNoncopyable {
26 public:
27 explicit GrFontScaler(SkGlyphCache* strike);
28
29 const SkDescriptor& getKey();
30 GrMaskFormat getPackedGlyphMaskFormat(const SkGlyph&) const;
31 bool getPackedGlyphBounds(const SkGlyph&, SkIRect* bounds);
32 bool getPackedGlyphImage(const SkGlyph&, int width, int height, int rowBytes ,
33 GrMaskFormat expectedMaskFormat, void* image);
34 bool getPackedGlyphDFBounds(const SkGlyph&, SkIRect* bounds);
35 bool getPackedGlyphDFImage(const SkGlyph&, int width, int height, void* imag e);
36 const SkPath* getGlyphPath(const SkGlyph&);
37 const SkGlyph& grToSkGlyph(GrGlyph::PackedID);
38
39 private:
40 // The SkGlyphCache actually owns this GrFontScaler. The GrFontScaler is del eted when the
41 // SkGlyphCache is deleted.
42 SkGlyphCache* fStrike;
43
44 typedef SkNoncopyable INHERITED;
45 };
46
47 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698