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

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

Issue 1191943002: Add useDFT field to SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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 | « include/gpu/GrContext.h ('k') | src/core/SkBitmapDevice.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 2015 Google Inc. 2 * Copyright 2015 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 GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 const GrPaint& paint, 237 const GrPaint& paint,
238 const SkMatrix& viewMatrix, 238 const SkMatrix& viewMatrix,
239 const SkRect& oval, 239 const SkRect& oval,
240 const GrStrokeInfo& strokeInfo); 240 const GrStrokeInfo& strokeInfo);
241 241
242 242
243 private: 243 private:
244 friend class GrAtlasTextContext; // for access to drawBatch 244 friend class GrAtlasTextContext; // for access to drawBatch
245 friend class GrContext; // for ctor 245 friend class GrContext; // for ctor
246 246
247 GrDrawContext(GrContext*, GrDrawTarget*, const SkDeviceProperties&, bool use DFT); 247 GrDrawContext(GrContext*, GrDrawTarget*, const SkDeviceProperties&);
248 248
249 // Sets the paint. Returns true on success; false on failure. 249 // Sets the paint. Returns true on success; false on failure.
250 bool prepareToDraw(GrPipelineBuilder*, 250 bool prepareToDraw(GrPipelineBuilder*,
251 GrRenderTarget* rt, 251 GrRenderTarget* rt,
252 const GrClip&, 252 const GrClip&,
253 const GrPaint* paint); 253 const GrPaint* paint);
254 GrTextContext* createTextContext(GrRenderTarget*, const SkDeviceProperties&, bool useDFT); 254 GrTextContext* createTextContext(GrRenderTarget*, const SkDeviceProperties&) ;
255 255
256 // A simpler version of the above which just returns true on success; false on failure. 256 // A simpler version of the above which just returns true on success; false on failure.
257 // Clip is *NOT* set 257 // Clip is *NOT* set
258 bool prepareToDraw(GrRenderTarget* rt); 258 bool prepareToDraw(GrRenderTarget* rt);
259 259
260 void internalDrawPath(GrDrawTarget*, 260 void internalDrawPath(GrDrawTarget*,
261 GrPipelineBuilder*, 261 GrPipelineBuilder*,
262 const SkMatrix& viewMatrix, 262 const SkMatrix& viewMatrix,
263 GrColor, 263 GrColor,
264 bool useAA, 264 bool useAA,
265 const SkPath&, 265 const SkPath&,
266 const GrStrokeInfo&); 266 const GrStrokeInfo&);
267 267
268 // This entry point allows the GrTextContext-derived classes to add their ba tches to 268 // This entry point allows the GrTextContext-derived classes to add their ba tches to
269 // the drawTarget. 269 // the drawTarget.
270 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrBatch* batch); 270 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrBatch* batch);
271 271
272 GrContext* fContext; // owning context -> no ref 272 GrContext* fContext; // owning context -> no ref
273 GrDrawTarget* fDrawTarget; 273 GrDrawTarget* fDrawTarget;
274 GrTextContext* fTextContext; // lazily created 274 GrTextContext* fTextContext; // lazily created
275 275
276 SkDeviceProperties* fDevProps; // ptr b.c. SkDeviceProperties isn't publi c 276 SkDeviceProperties* fDevProps; // ptr b.c. SkDeviceProperties isn't publi c
277 bool fUseDFT;
278 }; 277 };
279 278
280 #endif 279 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698