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

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

Issue 1151283004: Split drawing functionality out of GrContext and into new GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-GPU builds Created 5 years, 6 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/GrTextContext.cpp ('k') | src/gpu/SkGpuDevice.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 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
145 const SkMatrix*, const SkPaint*) overr ide; 145 const SkMatrix*, const SkPaint*) overr ide;
146 146
147 private: 147 private:
148 GrContext* fContext; 148 GrContext* fContext;
149 GrSkDrawProcs* fDrawProcs; 149 GrSkDrawProcs* fDrawProcs;
150 SkAutoTUnref<const SkClipStack> fClipStack; 150 SkAutoTUnref<const SkClipStack> fClipStack;
151 SkIPoint fClipOrigin; 151 SkIPoint fClipOrigin;
152 GrClip fClip; 152 GrClip fClip;
153 GrTextContext* fTextContext; 153 GrTextContext* fTextContext;
154 SkAutoTUnref<GrDrawContext> fDrawContext;
154 SkSurfaceProps fSurfaceProps; 155 SkSurfaceProps fSurfaceProps;
155 GrRenderTarget* fRenderTarget; 156 GrRenderTarget* fRenderTarget;
156 // remove when our clients don't rely on accessBitmap() 157 // remove when our clients don't rely on accessBitmap()
157 SkBitmap fLegacyBitmap; 158 SkBitmap fLegacyBitmap;
158 bool fNeedClear; 159 bool fNeedClear;
159 160
160 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u nsigned flags); 161 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u nsigned flags);
161 162
162 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 163 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
163 164
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 221 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
221 int sampleCount); 222 int sampleCount);
222 223
223 friend class GrAtlasTextContext; 224 friend class GrAtlasTextContext;
224 friend class GrTextContext; 225 friend class GrTextContext;
225 typedef SkBaseDevice INHERITED; 226 typedef SkBaseDevice INHERITED;
226 }; 227 };
227 228
228 #endif 229 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698