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

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

Issue 707723005: Revert of Get gpudft support working in dm, gm, nanobench and bench_pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/GrDistanceFieldTextContext.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 9
10 10
(...skipping 16 matching lines...) Expand all
27 class GrTextContext; 27 class GrTextContext;
28 28
29 /** 29 /**
30 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th e 30 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th e
31 * canvas. 31 * canvas.
32 */ 32 */
33 class SK_API SkGpuDevice : public SkBaseDevice { 33 class SK_API SkGpuDevice : public SkBaseDevice {
34 public: 34 public:
35 enum Flags { 35 enum Flags {
36 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear 36 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear
37 kDFText_Flag = 1 << 1, //!< Surface should render text using signed d istance fields 37 kDFFonts_Flag = 1 << 1, //!< Surface should render fonts using signed distance fields
38 }; 38 };
39 39
40 /** 40 /**
41 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is not a render 41 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is not a render
42 * target. The caller owns a ref on the returned device. If the surface is c ached, 42 * target. The caller owns a ref on the returned device. If the surface is c ached,
43 * the kCached_Flag should be specified to make the device responsible for u nlocking 43 * the kCached_Flag should be specified to make the device responsible for u nlocking
44 * the surface when it is released. 44 * the surface when it is released.
45 */ 45 */
46 static SkGpuDevice* Create(GrSurface* surface, const SkSurfaceProps&, unsign ed flags = 0); 46 static SkGpuDevice* Create(GrSurface* surface, const SkSurfaceProps&, unsign ed flags = 0);
47 47
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 private: 129 private:
130 GrContext* fContext; 130 GrContext* fContext;
131 131
132 GrSkDrawProcs* fDrawProcs; 132 GrSkDrawProcs* fDrawProcs;
133 133
134 GrClipData fClipData; 134 GrClipData fClipData;
135 135
136 GrTextContext* fTextContext; 136 GrTextContext* fTextContext;
137 137
138 // state for our render-target 138 // state for our render-target
139 GrRenderTarget* fRenderTarget; 139 GrRenderTarget* fRenderTarget;
140 uint32_t fFlags; 140 bool fNeedClear;
141 141
142 // remove when our clients don't rely on accessBitmap() 142 // remove when our clients don't rely on accessBitmap()
143 SkBitmap fLegacyBitmap; 143 SkBitmap fLegacyBitmap;
144 144
145 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0); 145 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0);
146 146
147 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; 147 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE;
148 148
149 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_ OVERRIDE; 149 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_ OVERRIDE;
150 150
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 bool bicubic); 196 bool bicubic);
197 197
198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
199 199
200 static SkPicture::AccelData::Key ComputeAccelDataKey(); 200 static SkPicture::AccelData::Key ComputeAccelDataKey();
201 201
202 typedef SkBaseDevice INHERITED; 202 typedef SkBaseDevice INHERITED;
203 }; 203 };
204 204
205 #endif 205 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698