aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/text
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-07-14 12:32:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-14 12:32:47 -0700
commit6599258a9902fb30007d7e5f5b3bc61f7208bebb (patch)
tree4f817443ba71a19f6f581e35eab612f22cc5d7d3 /include/text
parenta189ccdb4d5efdbbfa34a26c08656634b615f930 (diff)
Cleanup: Remove unused/unimplemented SkTextLayout.h.
Nobody uses it in Skia, Chromium and Blink. And it does not have any implementation either. BUG=None TEST=make all R=mtklein@google.com, reed@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/385323002
Diffstat (limited to 'include/text')
-rw-r--r--include/text/SkTextLayout.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/include/text/SkTextLayout.h b/include/text/SkTextLayout.h
deleted file mode 100644
index 718acdbc5a..0000000000
--- 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