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

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

Issue 2136643002: Revert of 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: 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;
36 class SkDrawFilter; 35 class SkDrawFilter;
37 struct SkIPoint; 36 struct SkIPoint;
38 struct SkIRect; 37 struct SkIRect;
39 class SkMatrix; 38 class SkMatrix;
40 class SkPaint; 39 class SkPaint;
41 class SkPath; 40 class SkPath;
42 struct SkPoint; 41 struct SkPoint;
43 struct SkRect; 42 struct SkRect;
44 class SkRRect; 43 class SkRRect;
45 struct SkRSXform; 44 struct SkRSXform;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 friend class GrMSAAPathRenderer; // for access to drawBatch 315 friend class GrMSAAPathRenderer; // for access to drawBatch
317 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch 316 friend class GrStencilAndCoverPathRenderer; // for access to drawBatch
318 friend class GrTessellatingPathRenderer; // for access to drawBatch 317 friend class GrTessellatingPathRenderer; // for access to drawBatch
319 318
320 bool drawFilledDRRect(const GrClip& clip, 319 bool drawFilledDRRect(const GrClip& clip,
321 const GrPaint& paint, 320 const GrPaint& paint,
322 const SkMatrix& viewMatrix, 321 const SkMatrix& viewMatrix,
323 const SkRRect& origOuter, 322 const SkRRect& origOuter,
324 const SkRRect& origInner); 323 const SkRRect& origInner);
325 324
326 bool drawFilledRect(const GrClip& clip, 325 GrDrawBatch* getFillRectBatch(const GrPaint& paint,
327 const GrPaint& paint, 326 const SkMatrix& viewMatrix,
328 const SkMatrix& viewMatrix, 327 const SkRect& rect,
329 const SkRect& rect, 328 bool* useHWAA);
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);
339 329
340 void internalDrawPath(const GrClip& clip, 330 void internalDrawPath(const GrClip& clip,
341 const GrPaint& paint, 331 const GrPaint& paint,
342 const SkMatrix& viewMatrix, 332 const SkMatrix& viewMatrix,
343 const SkPath& path, 333 const SkPath& path,
344 const GrStyle& style); 334 const GrStyle& style);
345 335
346 // This entry point allows the GrTextContext-derived classes to add their ba tches to 336 // This entry point allows the GrTextContext-derived classes to add their ba tches to
347 // the drawTarget. 337 // the drawTarget.
348 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch); 338 void drawBatch(const GrPipelineBuilder& pipelineBuilder, const GrClip&, GrDr awBatch* batch);
(...skipping 11 matching lines...) Expand all
360 GrInstancedPipelineInfo fInstancedPipelineInfo; 350 GrInstancedPipelineInfo fInstancedPipelineInfo;
361 351
362 SkSurfaceProps fSurfaceProps; 352 SkSurfaceProps fSurfaceProps;
363 GrAuditTrail* fAuditTrail; 353 GrAuditTrail* fAuditTrail;
364 354
365 // In debug builds we guard against improper thread handling 355 // In debug builds we guard against improper thread handling
366 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 356 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
367 }; 357 };
368 358
369 #endif 359 #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