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

Unified Diff: include/text/SkTextLayout.h

Issue 385323002: Cleanup: Remove unused/unimplemented SkTextLayout.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « gyp/public_headers.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/text/SkTextLayout.h
diff --git a/include/text/SkTextLayout.h b/include/text/SkTextLayout.h
deleted file mode 100644
index 718acdbc5a2899db003e68329ce84bba163e5335..0000000000000000000000000000000000000000
--- a/include/text/SkTextLayout.h
+++ /dev/null
@@ -1,60 +0,0 @@
-
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef SkTextLayout_DEFINED
-#define SkTextLayout_DEFINED
-
-#include "SkPaint.h"
-#include "SkRefCnt.h"
-
-class SkTextStyle : public SkRefCnt {
-public:
- SK_DECLARE_INST_COUNT(SkTextStyle)
-
- SkTextStyle();
- SkTextStyle(const SkTextStyle&);
- explicit SkTextStyle(const SkPaint&);
- virtual ~SkTextStyle();
-
- const SkPaint& paint() const { return fPaint; }
- SkPaint& paint() { return fPaint; }
-
- // todo: bidi-override, language
-
-private:
- SkPaint fPaint;
-
- typedef SkRefCnt INHERITED;
-};
-
-class SkTextLayout {
-public:
- SkTextLayout();
- ~SkTextLayout();
-
- void setText(const char text[], size_t length);
- void setBounds(const SkRect& bounds);
-
- SkTextStyle* getDefaultStyle() const { return fDefaultStyle; }
- SkTextStyle* setDefaultStyle(SkTextStyle*);
-
-// SkTextStyle* setStyle(SkTextStyle*, size_t offset, size_t length);
-
- void draw(SkCanvas* canvas);
-
-private:
- SkTDArray<char> fText;
- SkTextStyle* fDefaultStyle;
- SkRect fBounds;
-
- // cache
- struct Line;
- struct GlyphRun;
- SkTDArray<Line*> fLines;
-};
-
-#endif
« no previous file with comments | « gyp/public_headers.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698