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

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

Issue 1128153005: Add unit tests to text context (Closed) Base URL: https://skia.googlesource.com/skia.git@randbatch9
Patch Set: windows warning Created 5 years, 7 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 | « src/gpu/GrBatchTest.h ('k') | src/gpu/GrTextContext.cpp » ('j') | 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
16 #include "SkPostConfig.h" 15 #include "SkPostConfig.h"
17 16
18 class GrClip; 17 class GrClip;
19 class GrContext; 18 class GrContext;
20 class GrDrawTarget; 19 class GrDrawTarget;
21 class GrFontScaler; 20 class GrFontScaler;
22 class SkDrawFilter; 21 class SkDrawFilter;
23 class SkGpuDevice; 22 class SkGpuDevice;
24 class SkTextBlob; 23 class SkTextBlob;
25 24
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 87
89 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); 88 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache);
90 // sets extent in stopVector and returns glyph count 89 // sets extent in stopVector and returns glyph count
91 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, 90 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc,
92 const char text[], size_t byteLength, SkVector* stopV ector); 91 const char text[], size_t byteLength, SkVector* stopV ector);
93 92
94 friend class BitmapTextBatch; 93 friend class BitmapTextBatch;
95 }; 94 };
96 95
97 #endif 96 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrBatchTest.h ('k') | src/gpu/GrTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698