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

Side by Side Diff: src/gpu/text/GrStencilAndCoverTextContext.h

Issue 1893133002: Add requireHWAA param to GrPipelineBuilder constructor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_create_data
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrStencilAndCoverTextContext_DEFINED 8 #ifndef GrStencilAndCoverTextContext_DEFINED
9 #define GrStencilAndCoverTextContext_DEFINED 9 #define GrStencilAndCoverTextContext_DEFINED
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 SkDrawFilter* drawFilter, 66 SkDrawFilter* drawFilter,
67 const SkIRect& clipBounds); 67 const SkIRect& clipBounds);
68 68
69 class FallbackBlobBuilder; 69 class FallbackBlobBuilder;
70 70
71 class TextRun { 71 class TextRun {
72 public: 72 public:
73 TextRun(const SkPaint& fontAndStroke); 73 TextRun(const SkPaint& fontAndStroke);
74 ~TextRun(); 74 ~TextRun();
75 75
76 bool isAntiAlias() const { return fFont.isAntiAlias(); }
77
76 void setText(const char text[], size_t byteLength, SkScalar x, SkScalar y); 78 void setText(const char text[], size_t byteLength, SkScalar x, SkScalar y);
77 79
78 void setPosText(const char text[], size_t byteLength, const SkScalar pos [], 80 void setPosText(const char text[], size_t byteLength, const SkScalar pos [],
79 int scalarsPerPosition, const SkPoint& offset); 81 int scalarsPerPosition, const SkPoint& offset);
80 82
81 void draw(GrContext*, GrDrawContext*, GrPipelineBuilder*, GrColor, const SkMatrix&, 83 void draw(GrContext*, GrDrawContext*, GrPipelineBuilder*, GrColor, const SkMatrix&,
82 const SkSurfaceProps&, 84 const SkSurfaceProps&,
83 SkScalar x, SkScalar y, const SkIRect& clipBounds, 85 SkScalar x, SkScalar y, const SkIRect& clipBounds,
84 GrAtlasTextContext* fallbackTextContext, const SkPaint& origin alSkPaint) const; 86 GrAtlasTextContext* fallbackTextContext, const SkPaint& origin alSkPaint) const;
85 87
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void purgeToFit(const TextBlob&); 150 void purgeToFit(const TextBlob&);
149 151
150 GrAtlasTextContext* fFallbackTextConte xt; 152 GrAtlasTextContext* fFallbackTextConte xt;
151 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache; 153 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache;
152 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache; 154 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache;
153 SkTInternalLList<TextBlob> fLRUList; 155 SkTInternalLList<TextBlob> fLRUList;
154 size_t fCacheSize; 156 size_t fCacheSize;
155 }; 157 };
156 158
157 #endif 159 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698