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

Unified Diff: ui/gfx/render_text.h

Issue 493363006: Remove deferred fade shader workaround from RenderText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove deferred fade shader workaround from RenderText Created 6 years, 4 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 | « no previous file | 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 6a79c4ae630291f481180fe4ed2cca025f355fe1..7c52f4a6e58e848ed3fc797d27c03b0812eaf6b0 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -58,7 +58,7 @@ class SkiaTextRenderer {
void SetTextSize(SkScalar size);
void SetFontFamilyWithStyle(const std::string& family, int font_style);
void SetForegroundColor(SkColor foreground);
- void SetShader(SkShader* shader, const Rect& bounds);
+ void SetShader(SkShader* shader);
// 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.
@@ -104,8 +104,6 @@ class SkiaTextRenderer {
SkCanvas* canvas_skia_;
bool started_drawing_;
msw 2014/08/29 17:00:32 This is now unused, can you remove this?
SkPaint paint_;
- SkRect bounds_;
- skia::RefPtr<SkShader> deferred_fade_shader_;
SkScalar underline_thickness_;
SkScalar underline_position_;
scoped_ptr<DiagonalStrike> diagonal_;
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698