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

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 141863005: Add standalone drawText for GrTextContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@issue2018-factory
Patch Set: One more Mac compile error. Created 6 years, 10 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 | « include/gpu/GrTextContext.h ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // used by createCompatibleDevice 161 // used by createCompatibleDevice
162 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear); 162 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear);
163 163
164 // override from SkBaseDevice 164 // override from SkBaseDevice
165 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, 165 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config,
166 int width, int height, 166 int width, int height,
167 bool isOpaque, 167 bool isOpaque,
168 Usage usage) SK_OVERRIDE; 168 Usage usage) SK_OVERRIDE;
169 169
170 SkDrawProcs* initDrawForText(GrTextContext*);
171
172 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
173 // SkDraw's matrix and draw in device coords. 171 // SkDraw's matrix and draw in device coords.
174 void prepareDraw(const SkDraw&, bool forceIdentity); 172 void prepareDraw(const SkDraw&, bool forceIdentity);
175 173
176 /** 174 /**
177 * Implementation for both drawBitmap and drawBitmapRect. 175 * Implementation for both drawBitmap and drawBitmapRect.
178 */ 176 */
179 void drawBitmapCommon(const SkDraw&, 177 void drawBitmapCommon(const SkDraw&,
180 const SkBitmap& bitmap, 178 const SkBitmap& bitmap,
181 const SkRect* srcRectPtr, 179 const SkRect* srcRectPtr,
(...skipping 30 matching lines...) Expand all
212 210
213 /** 211 /**
214 * Returns non-initialized instance. 212 * Returns non-initialized instance.
215 */ 213 */
216 GrTextContext* getTextContext(); 214 GrTextContext* getTextContext();
217 215
218 typedef SkBitmapDevice INHERITED; 216 typedef SkBitmapDevice INHERITED;
219 }; 217 };
220 218
221 #endif 219 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTextContext.h ('k') | src/gpu/GrBitmapTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698