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

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

Issue 780923002: Ganesh text rendering cleanup. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | « gyp/gpu.gypi ('k') | src/gpu/GrBitmapTextContext.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 2013 Google Inc. 2 * Copyright 2013 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 GrBitmapTextContext_DEFINED 8 #ifndef GrBitmapTextContext_DEFINED
9 #define GrBitmapTextContext_DEFINED 9 #define GrBitmapTextContext_DEFINED
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 virtual void onDrawText(const GrPaint&, const SkPaint&, const char text[], s ize_t byteLength, 42 virtual void onDrawText(const GrPaint&, const SkPaint&, const char text[], s ize_t byteLength,
43 SkScalar x, SkScalar y) SK_OVERRIDE; 43 SkScalar x, SkScalar y) SK_OVERRIDE;
44 virtual void onDrawPosText(const GrPaint&, const SkPaint&, 44 virtual void onDrawPosText(const GrPaint&, const SkPaint&,
45 const char text[], size_t byteLength, 45 const char text[], size_t byteLength,
46 const SkScalar pos[], int scalarsPerPosition, 46 const SkScalar pos[], int scalarsPerPosition,
47 const SkPoint& offset) SK_OVERRIDE; 47 const SkPoint& offset) SK_OVERRIDE;
48 48
49 void init(const GrPaint&, const SkPaint&); 49 void init(const GrPaint&, const SkPaint&);
50 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler* ); 50 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler* );
51 bool uploadGlyph(GrGlyph*, GrFontScaler*);
51 void flush(); // automatically called by destructor 52 void flush(); // automatically called by destructor
52 void finish(); 53 void finish();
53 }; 54 };
54 55
55 #endif 56 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBitmapTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698