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

Unified Diff: include/gpu/GrFontScaler.h

Issue 721903002: Cleanup public includes directory. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: &^%%$# Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkWriteBuffer.h ('k') | include/gpu/GrGlyph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrFontScaler.h
diff --git a/include/gpu/GrFontScaler.h b/include/gpu/GrFontScaler.h
deleted file mode 100644
index 54d1e3f9cca39162719cc4594a80291a2902e9dc..0000000000000000000000000000000000000000
--- a/include/gpu/GrFontScaler.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright 2010 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrFontScaler_DEFINED
-#define GrFontScaler_DEFINED
-
-#include "GrGlyph.h"
-#include "GrTypes.h"
-
-#include "SkDescriptor.h"
-
-class SkPath;
-
-/*
- * Wrapper class to turn a font cache descriptor into a key
- * for GrFontScaler-related lookups
- */
-class GrFontDescKey : public SkRefCnt {
-public:
- SK_DECLARE_INST_COUNT(GrFontDescKey)
-
- typedef uint32_t Hash;
-
- explicit GrFontDescKey(const SkDescriptor& desc);
- virtual ~GrFontDescKey();
-
- Hash getHash() const { return fHash; }
-
- bool operator<(const GrFontDescKey& rh) const {
- return fHash < rh.fHash || (fHash == rh.fHash && this->lt(rh));
- }
- bool operator==(const GrFontDescKey& rh) const {
- return fHash == rh.fHash && this->eq(rh);
- }
-
-private:
- // helper functions for comparisons
- bool lt(const GrFontDescKey& rh) const;
- bool eq(const GrFontDescKey& rh) const;
-
- SkDescriptor* fDesc;
- enum {
- kMaxStorageInts = 16
- };
- uint32_t fStorage[kMaxStorageInts];
- const Hash fHash;
-
- typedef SkRefCnt INHERITED;
-};
-
-/*
- * This is Gr's interface to the host platform's font scaler.
- *
- * The client is responsible for instantiating this. The instance is created
- * for a specific font+size+matrix.
- */
-class GrFontScaler : public SkRefCnt {
-public:
- SK_DECLARE_INST_COUNT(GrFontScaler)
-
- explicit GrFontScaler(SkGlyphCache* strike);
- virtual ~GrFontScaler();
-
- const GrFontDescKey* getKey();
- GrMaskFormat getMaskFormat() const;
- GrMaskFormat getPackedGlyphMaskFormat(GrGlyph::PackedID) const;
- bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds);
- bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
- int rowBytes, void* image);
- bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds);
- bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,
- void* image);
- bool getGlyphPath(uint16_t glyphID, SkPath*);
-
-private:
- SkGlyphCache* fStrike;
- GrFontDescKey* fKey;
-
- typedef SkRefCnt INHERITED;
-};
-
-#endif
« no previous file with comments | « include/core/SkWriteBuffer.h ('k') | include/gpu/GrGlyph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698