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

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

Issue 145023006: Revert of Add factory class for generating various flavors of GrTextContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 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
11 #ifndef SkGpuDevice_DEFINED 11 #ifndef SkGpuDevice_DEFINED
12 #define SkGpuDevice_DEFINED 12 #define SkGpuDevice_DEFINED
13 13
14 #include "SkGr.h" 14 #include "SkGr.h"
15 #include "SkBitmap.h" 15 #include "SkBitmap.h"
16 #include "SkBitmapDevice.h" 16 #include "SkBitmapDevice.h"
17 #include "SkRegion.h" 17 #include "SkRegion.h"
18 #include "GrContext.h" 18 #include "GrContext.h"
19 #include "GrTextContext.h"
20 19
21 struct SkDrawProcs; 20 struct SkDrawProcs;
22 struct GrSkDrawProcs; 21 struct GrSkDrawProcs;
22 class GrTextContext;
23 23
24 /** 24 /**
25 * Subclass of SkBitmapDevice, which directs all drawing to the GrGpu owned by the 25 * Subclass of SkBitmapDevice, which directs all drawing to the GrGpu owned by the
26 * canvas. 26 * canvas.
27 */ 27 */
28 class SK_API SkGpuDevice : public SkBitmapDevice { 28 class SK_API SkGpuDevice : public SkBitmapDevice {
29 public: 29 public:
30 30
31 /** 31 /**
32 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is not a render 32 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is not a render
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int x, int y, 142 int x, int y,
143 SkCanvas::Config8888 config8888) SK_OVERRIDE; 143 SkCanvas::Config8888 config8888) SK_OVERRIDE;
144 144
145 private: 145 private:
146 GrContext* fContext; 146 GrContext* fContext;
147 147
148 GrSkDrawProcs* fDrawProcs; 148 GrSkDrawProcs* fDrawProcs;
149 149
150 GrClipData fClipData; 150 GrClipData fClipData;
151 151
152 GrTextContextManager* fTextContextManager;
153
154 // state for our render-target 152 // state for our render-target
155 GrRenderTarget* fRenderTarget; 153 GrRenderTarget* fRenderTarget;
156 bool fNeedClear; 154 bool fNeedClear;
157 155
158 // called from rt and tex cons 156 // called from rt and tex cons
159 void initFromRenderTarget(GrContext*, GrRenderTarget*, bool cached); 157 void initFromRenderTarget(GrContext*, GrRenderTarget*, bool cached);
160 158
161 // used by createCompatibleDevice 159 // used by createCompatibleDevice
162 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear); 160 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear);
163 161
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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