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

Unified Diff: ui/gfx/render_text.h

Issue 2654853002: Remove gfx::Canvas::DrawStringRectWithHalo. (Closed)
Patch Set: fix test Created 3 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 | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index fc02e24d461831a378e595ace5b4108f756122d6..f24633c2583e27c07285ed3c93cd5d605b413207 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -64,7 +64,6 @@ class GFX_EXPORT SkiaTextRenderer {
void SetTextSize(SkScalar size);
void SetForegroundColor(SkColor foreground);
void SetShader(sk_sp<SkShader> shader);
- void SetHaloEffect();
// Sets underline metrics to use if the text will be drawn with an underline.
// If not set, default values based on the size of the text will be used. The
// two metrics must be set together.
@@ -323,9 +322,6 @@ class GFX_EXPORT RenderText {
subpixel_rendering_suppressed_ = suppressed;
}
- bool halo_effect() const { return halo_effect_; }
- void set_halo_effect(bool halo_effect) { halo_effect_ = halo_effect; }
-
const SelectionModel& selection_model() const { return selection_model_; }
const Range& selection() const { return selection_model_.selection(); }
@@ -854,9 +850,6 @@ class GFX_EXPORT RenderText {
// A list of valid display text line break positions.
BreakList<size_t> line_breaks_;
- // Draw text with 1px border.
- bool halo_effect_ = false;
-
// Lines computed by EnsureLayout. These should be invalidated upon
// OnLayoutTextAttributeChanged and OnDisplayTextAttributeChanged calls.
std::vector<internal::Line> lines_;
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698