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

Unified Diff: src/gpu/GrFontScaler.h

Issue 1521453002: Move all text stuff to its own folder (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext11textutils2
Patch Set: Created 5 years 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 | « src/gpu/GrDrawingManager.cpp ('k') | src/gpu/GrFontScaler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrFontScaler.h
diff --git a/src/gpu/GrFontScaler.h b/src/gpu/GrFontScaler.h
deleted file mode 100644
index e42c7a1da007f866592b9970d0769bbe57759f86..0000000000000000000000000000000000000000
--- a/src/gpu/GrFontScaler.h
+++ /dev/null
@@ -1,69 +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 SkGlyph;
-class SkPath;
-
-/*
- * Wrapper class to turn a font cache descriptor into a key
- * for GrFontScaler-related lookups
- */
-class GrFontDescKey : public SkRefCnt {
-public:
- explicit GrFontDescKey(const SkDescriptor& desc) : fDesc(desc), fHash(desc.getChecksum()) {}
-
- uint32_t getHash() const { return fHash; }
-
- bool operator==(const GrFontDescKey& rh) const {
- return fHash == rh.fHash && fDesc.getDesc()->equals(*rh.fDesc.getDesc());
- }
-
-private:
- SkAutoDescriptor fDesc;
- uint32_t 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:
- explicit GrFontScaler(SkGlyphCache* strike);
- virtual ~GrFontScaler();
-
- const GrFontDescKey* getKey();
- GrMaskFormat getMaskFormat() const;
- GrMaskFormat getPackedGlyphMaskFormat(const SkGlyph&) const;
- bool getPackedGlyphBounds(const SkGlyph&, SkIRect* bounds);
- bool getPackedGlyphImage(const SkGlyph&, int width, int height, int rowBytes,
- GrMaskFormat expectedMaskFormat, void* image);
- bool getPackedGlyphDFBounds(const SkGlyph&, SkIRect* bounds);
- bool getPackedGlyphDFImage(const SkGlyph&, int width, int height, void* image);
- const SkPath* getGlyphPath(const SkGlyph&);
- const SkGlyph& grToSkGlyph(GrGlyph::PackedID);
-
-private:
- SkGlyphCache* fStrike;
- GrFontDescKey* fKey;
-
- typedef SkRefCnt INHERITED;
-};
-
-#endif
« no previous file with comments | « src/gpu/GrDrawingManager.cpp ('k') | src/gpu/GrFontScaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698