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

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

Issue 2125333002: Add choke point for modifying non-AA rect draws (e.g., applying clipping) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix infinite optimization loop Created 4 years, 5 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 | « no previous file | src/gpu/GrClipMaskManager.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 14 matching lines...) Expand all
25 class GrDrawContextPriv; 25 class GrDrawContextPriv;
26 class GrDrawPathBatchBase; 26 class GrDrawPathBatchBase;
27 class GrDrawingManager; 27 class GrDrawingManager;
28 class GrDrawTarget; 28 class GrDrawTarget;
29 class GrPaint; 29 class GrPaint;
30 class GrPathProcessor; 30 class GrPathProcessor;
31 class GrPipelineBuilder; 31 class GrPipelineBuilder;
32 class GrRenderTarget; 32 class GrRenderTarget;
33 class GrStyle; 33 class GrStyle;
34 class GrSurface; 34 class GrSurface;
35 struct GrUserStencilSettings;
35 class SkDrawFilter; 36 class SkDrawFilter;
36 struct SkIPoint; 37 struct SkIPoint;
37 struct SkIRect; 38 struct SkIRect;
38 class SkMatrix; 39 class SkMatrix;
39 class SkPaint; 40 class SkPaint;
40 class SkPath; 41 class SkPath;
41 struct SkPoint; 42 struct SkPoint;
42 struct SkRect; 43 struct SkRect;
43 class SkRRect; 44 class SkRRect;
44 struct SkRSXform; 45 struct SkRSXform;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 friend class GrMSAAPathRenderer; // for access to drawBatch 316 friend class GrMSAAPathRenderer; // for access to drawBatch
316 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch 317 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch
317 friend class GrTessellatingPathRenderer; // for access to drawBatch 318 friend class GrTessellatingPathRenderer; // for access to drawBatch
318 319
319 bool drawFilledDRRect(const GrClip& clip, 320 bool drawFilledDRRect(const GrClip& clip,
320 const GrPaint& paint, 321 const GrPaint& paint,
321 const SkMatrix& viewMatrix, 322 const SkMatrix& viewMatrix,
322 const SkRRect& origOuter, 323 const SkRRect& origOuter,
323 const SkRRect& origInner); 324 const SkRRect& origInner);
324 325
325 GrDrawBatch* getFillRectBatch(const GrPaint& paint, 326 bool drawFilledRect(const GrClip& clip,
326 const SkMatrix& viewMatrix, 327 const GrPaint& paint,
327 const SkRect& rect, 328 const SkMatrix& viewMatrix,
328 bool* useHWAA); 329 const SkRect& rect,
330 const GrUserStencilSettings* ss);
331
332 void drawNonAAFilledRect(const GrClip&,
333 const GrPaint&,
334 const SkMatrix& viewMatrix,
335 const SkRect& rect,
336 const SkRect* localRect,
337 const SkMatrix* localMatrix,
338 const GrUserStencilSettings* ss);
329 339
330 void internalDrawPath(const GrClip& clip, 340 void internalDrawPath(const GrClip& clip,
331 const GrPaint& paint, 341 const GrPaint& paint,
332 const SkMatrix& viewMatrix, 342 const SkMatrix& viewMatrix,
333 const SkPath& path, 343 const SkPath& path,
334 const GrStyle& style); 344 const GrStyle& style);
335 345
336 // This entry point allows the GrTextContext-derived classes to add their ba tches to 346 // This entry point allows the GrTextContext-derived classes to add their ba tches to
337 // the drawTarget. 347 // the drawTarget.
338 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch); 348 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch);
(...skipping 11 matching lines...) Expand all
350 GrInstancedPipelineInfo fInstancedPipelineInfo; 360 GrInstancedPipelineInfo fInstancedPipelineInfo;
351 361
352 SkSurfaceProps fSurfaceProps; 362 SkSurfaceProps fSurfaceProps;
353 GrAuditTrail* fAuditTrail; 363 GrAuditTrail* fAuditTrail;
354 364
355 // In debug builds we guard against improper thread handling 365 // In debug builds we guard against improper thread handling
356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 366 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
357 }; 367 };
358 368
359 #endif 369 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698