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

Side by Side Diff: src/gpu/GrTextContext.h

Issue 1096433007: Revert of enable TextBlob / Batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 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 GrTextContext_DEFINED 8 #ifndef GrTextContext_DEFINED
9 #define GrTextContext_DEFINED 9 #define GrTextContext_DEFINED
10 10
11 #include "GrClip.h" 11 #include "GrClip.h"
12 #include "GrGlyph.h" 12 #include "GrGlyph.h"
13 #include "GrPaint.h" 13 #include "GrPaint.h"
14 #include "SkDeviceProperties.h" 14 #include "SkDeviceProperties.h"
15 15
16 #include "SkPostConfig.h" 16 #include "SkPostConfig.h"
17 17
18 class GrClip; 18 class GrClip;
19 class GrContext; 19 class GrContext;
20 class GrDrawTarget; 20 class GrDrawTarget;
21 class GrFontScaler; 21 class GrFontScaler;
22 class SkDrawFilter; 22 class SkDrawFilter;
23 class SkGpuDevice; 23 class SkGpuDevice;
24 class SkTextBlob; 24 class SkTextBlob;
25 25
26 // For testing textblobs on GPU. 26 // For testing textblobs on GPU.
27 #define USE_BITMAP_TEXTBLOBS 27 //#define USE_BITMAP_TEXTBLOBS
28 28
29 /* 29 /*
30 * This class wraps the state for a single text render 30 * This class wraps the state for a single text render
31 */ 31 */
32 class GrTextContext { 32 class GrTextContext {
33 public: 33 public:
34 virtual ~GrTextContext(); 34 virtual ~GrTextContext();
35 35
36 void drawText(GrRenderTarget* rt, const GrClip&, const GrPaint&, const SkPa int&, 36 void drawText(GrRenderTarget* rt, const GrClip&, const GrPaint&, const SkPa int&,
37 const SkMatrix& viewMatrix, const char text[], size_t byteLeng th, SkScalar x, 37 const SkMatrix& viewMatrix, const char text[], size_t byteLeng th, SkScalar x,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); 92 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache);
93 // sets extent in stopVector and returns glyph count 93 // sets extent in stopVector and returns glyph count
94 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, 94 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc,
95 const char text[], size_t byteLength, SkVector* stopV ector); 95 const char text[], size_t byteLength, SkVector* stopV ector);
96 96
97 friend class BitmapTextBatch; 97 friend class BitmapTextBatch;
98 }; 98 };
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698