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

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

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrEffect.h ('k') | include/gpu/GrKey.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 * 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 GrFontScaler_DEFINED 8 #ifndef GrFontScaler_DEFINED
9 #define GrFontScaler_DEFINED 9 #define GrFontScaler_DEFINED
10 10
11 #include "GrGlyph.h" 11 #include "GrGlyph.h"
12 #include "GrKey.h" 12 #include "GrKey.h"
13 13
14 class SkPath; 14 class SkPath;
15 15
16 /** 16 /**
17 * This is a virtual base class which Gr's interface to the host platform's 17 * This is a virtual base class which Gr's interface to the host platform's
18 * font scaler. 18 * font scaler.
19 * 19 *
20 * The client is responsible for subclassing, and instantiating this. The 20 * The client is responsible for subclassing, and instantiating this. The
21 * instance is create for a specific font+size+matrix. 21 * instance is create for a specific font+size+matrix.
22 */ 22 */
23 class GrFontScaler : public GrRefCnt { 23 class GrFontScaler : public SkRefCnt {
24 public: 24 public:
25 SK_DECLARE_INST_COUNT(GrFontScaler) 25 SK_DECLARE_INST_COUNT(GrFontScaler)
26 26
27 virtual const GrKey* getKey() = 0; 27 virtual const GrKey* getKey() = 0;
28 virtual GrMaskFormat getMaskFormat() = 0; 28 virtual GrMaskFormat getMaskFormat() = 0;
29 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; 29 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0;
30 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, 30 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
31 int rowBytes, void* image) = 0; 31 int rowBytes, void* image) = 0;
32 virtual bool getGlyphPath(uint16_t glyphID, SkPath*) = 0; 32 virtual bool getGlyphPath(uint16_t glyphID, SkPath*) = 0;
33 33
34 private: 34 private:
35 typedef GrRefCnt INHERITED; 35 typedef SkRefCnt INHERITED;
36 }; 36 };
37 37
38 #endif 38 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrEffect.h ('k') | include/gpu/GrKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698