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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/text/GrFontScaler.h
diff --git a/src/gpu/text/GrFontScaler.h b/src/gpu/text/GrFontScaler.h
deleted file mode 100644
index 41cce99fa543c3f3d7bb593ae571efe562f6620a..0000000000000000000000000000000000000000
--- a/src/gpu/text/GrFontScaler.h
+++ /dev/null
@@ -1,47 +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;
-
-/*
- * 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 final : public SkNoncopyable {
-public:
- explicit GrFontScaler(SkGlyphCache* strike);
-
- const SkDescriptor& getKey();
- 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:
- // The SkGlyphCache actually owns this GrFontScaler. The GrFontScaler is deleted when the
- // SkGlyphCache is deleted.
- SkGlyphCache* fStrike;
-
- typedef SkNoncopyable INHERITED;
-};
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698