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

Unified Diff: ui/gfx/render_text.h

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: update Created 3 years, 6 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 | « third_party/WebKit/Source/platform/graphics/paint/PaintShader.h ('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 00fe00c8e734d7bfc0eebaf5bbaee6601c36ef8e..5353be69b8e2207a8e83cbd71824248ab96866e0 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -37,7 +37,6 @@
class SkDrawLooper;
struct SkPoint;
-class SkShader;
class SkTypeface;
namespace gfx {
@@ -63,7 +62,7 @@ class GFX_EXPORT SkiaTextRenderer {
void SetTypeface(sk_sp<SkTypeface> typeface);
void SetTextSize(SkScalar size);
void SetForegroundColor(SkColor foreground);
- void SetShader(sk_sp<SkShader> shader);
+ void SetShader(std::unique_ptr<cc::PaintShader> 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.
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintShader.h ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698