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

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

Issue 1897203002: Implement instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@upload2_requireHWAA
Patch Set: comments Created 4 years, 7 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 | « gyp/gpu.gypi ('k') | include/gpu/gl/GrGLFunctions.h » ('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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 friend class GrDrawContextPriv; 301 friend class GrDrawContextPriv;
302 302
303 bool drawFilledDRRect(const GrClip& clip, 303 bool drawFilledDRRect(const GrClip& clip,
304 const GrPaint& paint, 304 const GrPaint& paint,
305 const SkMatrix& viewMatrix, 305 const SkMatrix& viewMatrix,
306 const SkRRect& origOuter, 306 const SkRRect& origOuter,
307 const SkRRect& origInner); 307 const SkRRect& origInner);
308 308
309 GrDrawBatch* getFillRectBatch(const GrPaint& paint, 309 GrDrawBatch* getFillRectBatch(const GrPaint& paint,
310 const SkMatrix& viewMatrix, 310 const SkMatrix& viewMatrix,
311 const SkRect& rect); 311 const SkRect& rect,
312 uint32_t extraInstRenderFlags,
313 bool* enableHWAA);
312 314
313 void internalDrawPath(const GrClip& clip, 315 void internalDrawPath(const GrClip& clip,
314 const GrPaint& paint, 316 const GrPaint& paint,
315 const SkMatrix& viewMatrix, 317 const SkMatrix& viewMatrix,
316 const SkPath& path, 318 const SkPath& path,
317 const GrStrokeInfo& strokeInfo); 319 const GrStrokeInfo& strokeInfo);
318 320
319 // This entry point allows the GrTextContext-derived classes to add their ba tches to 321 // This entry point allows the GrTextContext-derived classes to add their ba tches to
320 // the drawTarget. 322 // the drawTarget.
321 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); 323 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch);
322 324
323 GrDrawTarget* getDrawTarget(); 325 GrDrawTarget* getDrawTarget();
324 326
325 GrDrawingManager* fDrawingManager; 327 GrDrawingManager* fDrawingManager;
326 GrRenderTarget* fRenderTarget; 328 GrRenderTarget* fRenderTarget;
327 329
328 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 330 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
329 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 331 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
330 GrDrawTarget* fDrawTarget; 332 GrDrawTarget* fDrawTarget;
331 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; 333 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
332 GrContext* fContext; 334 GrContext* fContext;
335 uint32_t fInstancedRenderingFlags;
333 336
334 SkSurfaceProps fSurfaceProps; 337 SkSurfaceProps fSurfaceProps;
335 GrAuditTrail* fAuditTrail; 338 GrAuditTrail* fAuditTrail;
336 339
337 // In debug builds we guard against improper thread handling 340 // In debug builds we guard against improper thread handling
338 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 341 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
339 }; 342 };
340 343
341 #endif 344 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/gl/GrGLFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698