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

Unified Diff: ui/gfx/render_text.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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/paint_vector_icon.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 567a647f93fb34299d8cc3ffbde06c9c1e36be17..8f49e5ec198973163f6673d25bbcda3753af9af9 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -18,8 +18,9 @@
#include "base/i18n/rtl.h"
#include "base/macros.h"
#include "base/strings/string16.h"
+#include "cc/paint/paint_canvas.h"
+#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "ui/gfx/break_list.h"
#include "ui/gfx/font_list.h"
@@ -34,7 +35,6 @@
#include "ui/gfx/shadow_value.h"
#include "ui/gfx/text_constants.h"
-class SkCanvas;
class SkDrawLooper;
struct SkPoint;
class SkShader;
@@ -90,7 +90,7 @@ class GFX_EXPORT SkiaTextRenderer {
// lengths and colors; to support text selection appearances.
class DiagonalStrike {
public:
- DiagonalStrike(Canvas* canvas, Point start, const SkPaint& paint);
+ DiagonalStrike(Canvas* canvas, Point start, const cc::PaintFlags& paint);
~DiagonalStrike();
void AddPiece(int length, SkColor color);
@@ -101,7 +101,7 @@ class GFX_EXPORT SkiaTextRenderer {
Canvas* canvas_;
const Point start_;
- SkPaint paint_;
+ cc::PaintFlags paint_;
int total_length_;
std::vector<Piece> pieces_;
@@ -109,8 +109,8 @@ class GFX_EXPORT SkiaTextRenderer {
};
Canvas* canvas_;
- SkCanvas* canvas_skia_;
- SkPaint paint_;
+ cc::PaintCanvas* canvas_skia_;
+ cc::PaintFlags paint_;
SkScalar underline_thickness_;
SkScalar underline_position_;
std::unique_ptr<DiagonalStrike> diagonal_;
@@ -199,7 +199,7 @@ sk_sp<SkTypeface> CreateSkiaTypeface(const Font& font,
// Applies the given FontRenderParams to a Skia |paint|.
void ApplyRenderParams(const FontRenderParams& params,
bool subpixel_rendering_suppressed,
- SkPaint* paint);
+ cc::PaintFlags* paint);
} // namespace internal
« no previous file with comments | « ui/gfx/paint_vector_icon.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698