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

Unified Diff: ui/gfx/render_text.h

Issue 152473008: More or less implement RenderTextHarfBuzz (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 2864b43f8dc5c236fc796025bfc5f198012c0111..b3d6f4131560edbfc7bc4713d3798d1c6121b673 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -11,6 +11,7 @@
#include <utility>
#include <vector>
+#include "base/command_line.h"
#include "base/gtest_prod_util.h"
#include "base/i18n/rtl.h"
#include "base/strings/string16.h"
@@ -41,6 +42,7 @@ namespace gfx {
class Canvas;
class Font;
class RenderTextTest;
+class RenderTextHarfBuzz; // REMOVE
namespace internal {
@@ -75,6 +77,8 @@ class SkiaTextRenderer {
void DrawStrike(int x, int y, int width) const;
void DrawDiagonalStrike(int x, int y, int width) const;
+ SkPaint paint() const { return paint_; }
+
private:
SkCanvas* canvas_skia_;
bool started_drawing_;
@@ -158,7 +162,7 @@ class GFX_EXPORT RenderText {
public:
virtual ~RenderText();
- // Creates a platform-specific RenderText instance.
+ // Creates a platform-specific or cross-platform RenderText instance.
static RenderText* CreateInstance();
const base::string16& text() const { return text_; }
@@ -399,6 +403,9 @@ class GFX_EXPORT RenderText {
protected:
RenderText();
+ // Creates a platform-specific RenderText instance.
+ static RenderText* CreateNativeInstance();
+
const BreakList<SkColor>& colors() const { return colors_; }
const std::vector<BreakList<bool> >& styles() const { return styles_; }
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/render_text.cc » ('j') | ui/gfx/render_text_harfbuzz.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698