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

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

Issue 663583002: Remove AutoScratchTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix tabbing Created 6 years, 2 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/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.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 2012 Google Inc. 2 * Copyright 2012 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 GrClipMaskManager_DEFINED 8 #ifndef GrClipMaskManager_DEFINED
9 #define GrClipMaskManager_DEFINED 9 #define GrClipMaskManager_DEFINED
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // alpha mask simultaneously. If so and the element is a path a compatible p ath renderer is 156 // alpha mask simultaneously. If so and the element is a path a compatible p ath renderer is
157 // also returned. 157 // also returned.
158 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element* , GrPathRenderer**); 158 bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element* , GrPathRenderer**);
159 159
160 void mergeMask(GrTexture* dstMask, 160 void mergeMask(GrTexture* dstMask,
161 GrTexture* srcMask, 161 GrTexture* srcMask,
162 SkRegion::Op op, 162 SkRegion::Op op,
163 const SkIRect& dstBound, 163 const SkIRect& dstBound,
164 const SkIRect& srcBound); 164 const SkIRect& srcBound);
165 165
166 void getTemp(int width, int height, GrAutoScratchTexture* temp); 166 GrTexture* createTempMask(int width, int height);
167 167
168 void setupCache(const SkClipStack& clip, 168 void setupCache(const SkClipStack& clip,
169 const SkIRect& bounds); 169 const SkIRect& bounds);
170 170
171 /** 171 /**
172 * Called prior to return control back the GrGpu in setupClipping. It 172 * Called prior to return control back the GrGpu in setupClipping. It
173 * updates the GrGpu with stencil settings that account stencil-based 173 * updates the GrGpu with stencil settings that account stencil-based
174 * clipping. 174 * clipping.
175 */ 175 */
176 void setGpuStencil(); 176 void setGpuStencil();
177 177
178 /** 178 /**
179 * Adjusts the stencil settings to account for interaction with stencil 179 * Adjusts the stencil settings to account for interaction with stencil
180 * clipping. 180 * clipping.
181 */ 181 */
182 void adjustStencilParams(GrStencilSettings* settings, 182 void adjustStencilParams(GrStencilSettings* settings,
183 StencilClipMode mode, 183 StencilClipMode mode,
184 int stencilBitCnt); 184 int stencilBitCnt);
185 185
186 typedef SkNoncopyable INHERITED; 186 typedef SkNoncopyable INHERITED;
187 }; 187 };
188 188
189 #endif // GrClipMaskManager_DEFINED 189 #endif // GrClipMaskManager_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698