summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmoniuszko <tmoniuszko@opera.com>2014-09-02 12:57:17 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-02 20:00:38 +0000
commit17657629ccd75c5fa76019f06da04d4ceec2367f (patch)
tree779298017f37807759dbd71df7cbb58dbbd992b4
parent6513171d7473b9eb60e1bf16369cf893daa33a07 (diff)
downloadchromium_src-17657629ccd75c5fa76019f06da04d4ceec2367f.zip
chromium_src-17657629ccd75c5fa76019f06da04d4ceec2367f.tar.gz
chromium_src-17657629ccd75c5fa76019f06da04d4ceec2367f.tar.bz2
Further cleanup of RenderText
Remove redundant data member and include. Followup after https://codereview.chromium.org/493363006 BUG=388084 Review URL: https://codereview.chromium.org/527103003 Cr-Commit-Position: refs/heads/master@{#292982}
-rw-r--r--ui/gfx/render_text.cc1
-rw-r--r--ui/gfx/render_text.h2
2 files changed, 0 insertions, 3 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index 14e2193..6dca550 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -179,7 +179,6 @@ const SkScalar kUnderlineMetricsNotSet = -1.0f;
SkiaTextRenderer::SkiaTextRenderer(Canvas* canvas)
: canvas_(canvas),
canvas_skia_(canvas->sk_canvas()),
- started_drawing_(false),
underline_thickness_(kUnderlineMetricsNotSet),
underline_position_(0.0f) {
DCHECK(canvas_skia_);
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 7c52f4a..4cc8e49 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -18,7 +18,6 @@
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkRect.h"
#include "ui/gfx/break_list.h"
#include "ui/gfx/font_list.h"
#include "ui/gfx/font_render_params.h"
@@ -102,7 +101,6 @@ class SkiaTextRenderer {
Canvas* canvas_;
SkCanvas* canvas_skia_;
- bool started_drawing_;
SkPaint paint_;
SkScalar underline_thickness_;
SkScalar underline_position_;