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

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

Issue 1471883002: Make stencil and cover path rendering have more reasonable bounds. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | src/gpu/GrDrawContext.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SkDrawFilter*, const SkIRect& clipBounds); 63 SkDrawFilter*, const SkIRect& clipBounds);
64 64
65 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext 65 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext
66 // TODO: remove once path batches can be created external to GrDrawTarget. 66 // TODO: remove once path batches can be created external to GrDrawTarget.
67 void drawPathsFromRange(const GrPipelineBuilder*, 67 void drawPathsFromRange(const GrPipelineBuilder*,
68 const SkMatrix& viewMatrix, 68 const SkMatrix& viewMatrix,
69 const SkMatrix& localMatrix, 69 const SkMatrix& localMatrix,
70 GrColor color, 70 GrColor color,
71 GrPathRange* range, 71 GrPathRange* range,
72 GrPathRangeDraw* draw, 72 GrPathRangeDraw* draw,
73 int /*GrPathRendering::FillType*/ fill); 73 int /*GrPathRendering::FillType*/ fill,
74 const SkRect& bounds);
74 75
75 /** 76 /**
76 * Provides a perfomance hint that the render target's contents are allowed 77 * Provides a perfomance hint that the render target's contents are allowed
77 * to become undefined. 78 * to become undefined.
78 */ 79 */
79 void discard(); 80 void discard();
80 81
81 /** 82 /**
82 * Clear the entire or rect of the render target, ignoring any clips. 83 * Clear the entire or rect of the render target, ignoring any clips.
83 * @param rect the rect to clear or the whole thing if rect is NULL. 84 * @param rect the rect to clear or the whole thing if rect is NULL.
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 299
299 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 300 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
300 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 301 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
301 GrDrawTarget* fDrawTarget; 302 GrDrawTarget* fDrawTarget;
302 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger 303 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger
303 304
304 SkSurfaceProps fSurfaceProps; 305 SkSurfaceProps fSurfaceProps;
305 }; 306 };
306 307
307 #endif 308 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698