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

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 2233043002: Add a full clear method to GrDrawTarget. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: include order Created 4 years, 4 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 | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 * (if possible in the 3D API). Note, we will never have an inverse 114 * (if possible in the 3D API). Note, we will never have an inverse
115 * fill with stencil path 115 * fill with stencil path
116 */ 116 */
117 void stencilPath(GrDrawContext*, 117 void stencilPath(GrDrawContext*,
118 const GrClip&, 118 const GrClip&,
119 const GrUserStencilSettings*, 119 const GrUserStencilSettings*,
120 bool useHWAA, 120 bool useHWAA,
121 const SkMatrix& viewMatrix, 121 const SkMatrix& viewMatrix,
122 const GrPath*); 122 const GrPath*);
123 123
124 /** Clears the entire render target */
125 void fullClear(GrRenderTarget*, GrColor color);
126
124 /** Discards the contents render target. */ 127 /** Discards the contents render target. */
125 void discard(GrRenderTarget*); 128 void discard(GrRenderTarget*);
126 129
127 /** 130 /**
128 * Copies a pixel rectangle from one surface to another. This call may final ize 131 * Copies a pixel rectangle from one surface to another. This call may final ize
129 * reserved vertex/index data (as though a draw call was made). The src pixe ls 132 * reserved vertex/index data (as though a draw call was made). The src pixe ls
130 * copied are specified by srcRect. They are copied to a rect of the same 133 * copied are specified by srcRect. They are copied to a rect of the same
131 * size in dst with top left at dstPoint. If the src rect is clipped by the 134 * size in dst with top left at dstPoint. If the src rect is clipped by the
132 * src bounds then pixel values in the dst rect corresponding to area clipp ed 135 * src bounds then pixel values in the dst rect corresponding to area clipp ed
133 * by the src rect are not overwritten. This method is not guaranteed to suc ceed 136 * by the src rect are not overwritten. This method is not guaranteed to suc ceed
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool fDrawBatchBounds; 234 bool fDrawBatchBounds;
232 int fMaxBatchLookback; 235 int fMaxBatchLookback;
233 int fMaxBatchLookahead; 236 int fMaxBatchLookahead;
234 237
235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; 238 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering;
236 239
237 typedef SkRefCnt INHERITED; 240 typedef SkRefCnt INHERITED;
238 }; 241 };
239 242
240 #endif 243 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698