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

Unified Diff: src/text/SkTextLayout.cpp

Issue 222683003: Remove misc. dead code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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 | « src/core/SkRegion_rects.cpp ('k') | src/utils/SkJSON.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/text/SkTextLayout.cpp
diff --git a/src/text/SkTextLayout.cpp b/src/text/SkTextLayout.cpp
deleted file mode 100644
index 6f8bca562abb9b18e57e6571580471afbb14a3af..0000000000000000000000000000000000000000
--- a/src/text/SkTextLayout.cpp
+++ /dev/null
@@ -1,78 +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.
- */
-#include "SkTextLayout.h"
-
-SkTextStyle::SkTextStyle() {
- fPaint.setAntiAlias(true);
-}
-
-SkTextStyle::SkTextStyle(const SkTextStyle& src) : fPaint(src.fPaint) {}
-
-SkTextStyle::SkTextStyle(const SkPaint& paint) : fPaint(paint) {}
-
-SkTextStyle::~SkTextStyle() {}
-
-///////////////////////////////////////////////////////////////////////////////
-
-SkTextLayout::SkTextLayout() {
- fBounds.setEmpty();
- fDefaultStyle = new SkTextStyle;
-}
-
-SkTextLayout::~SkTextLayout() {
- fDefaultStyle->unref();
- fLines.deleteAll();
-}
-
-void SkTextLayout::setText(const char text[], size_t length) {
- fText.setCount(length);
- memcpy(fText.begin(), text, length);
-}
-
-void SkTextLayout::setBounds(const SkRect& bounds) {
- fBounds = bounds;
- // if width changed, inval cache
-}
-
-SkTextStyle* SkTextLayout::setDefaultStyle(SkTextStyle* style) {
- SkRefCnt_SafeAssign(fDefaultStyle, style);
- return style;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-
-struct SkTextLayout::GlyphRun {
- GlyphRun();
- ~GlyphRun();
-
- SkPoint* fLocs;
- uint16_t* fGlyphIDs;
- int fCount;
-};
-
-SkTextLayout::GlyphRun::GlyphRun() : fLocs(NULL), fGlyphIDs(NULL), fCount(0) {}
-
-SkTextLayout::GlyphRun::~GlyphRun() {
- delete[] fLocs;
- delete[] fGlyphIDs;
-}
-
-struct SkTextLayout::Line {
- Line() {}
- ~Line();
-
- SkScalar fBaselineY;
- SkTDArray<GlyphRun*> fRuns;
-};
-
-SkTextLayout::Line::~Line() {
- fRuns.deleteAll();
-}
-
-void SkTextLayout::draw(SkCanvas* canvas) {
-}
« no previous file with comments | « src/core/SkRegion_rects.cpp ('k') | src/utils/SkJSON.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698