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

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

Issue 1232103002: Enable stencil clipping in mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove the use of hardcoded sample locations Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 GrRenderTarget_DEFINED 8 #ifndef GrRenderTarget_DEFINED
9 #define GrRenderTarget_DEFINED 9 #define GrRenderTarget_DEFINED
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Allows the backends to perform any additional work that is required for a ttaching a 168 // Allows the backends to perform any additional work that is required for a ttaching a
169 // GrStencilAttachment. When this is called, the GrStencilAttachment has alr eady been put onto 169 // GrStencilAttachment. When this is called, the GrStencilAttachment has alr eady been put onto
170 // the GrRenderTarget. This function must return false if any failures occur when completing the 170 // the GrRenderTarget. This function must return false if any failures occur when completing the
171 // stencil attachment. 171 // stencil attachment.
172 virtual bool completeStencilAttachment() = 0; 172 virtual bool completeStencilAttachment() = 0;
173 173
174 friend class GrRenderTargetPriv; 174 friend class GrRenderTargetPriv;
175 175
176 GrStencilAttachment* fStencilAttachment; 176 GrStencilAttachment* fStencilAttachment;
177 SampleConfig fSampleConfig; 177 SampleConfig fSampleConfig;
178 // True if sample locations colocated at pixel center are currently in use, false if default
179 // sample locations are currently in use.
bsalomon 2015/09/29 17:41:57 I'm wondering whether this should be in the GL sub
vbuzinov 2015/09/30 06:08:29 I agree, I think this property belongs to the GL s
180 bool fUsesColocatedSampleLocations;
178 181
179 SkIRect fResolveRect; 182 SkIRect fResolveRect;
180 183
181 typedef GrSurface INHERITED; 184 typedef GrSurface INHERITED;
182 }; 185 };
183 186
184 187
185 #endif 188 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrCaps.h ('k') | include/gpu/gl/GrGLFunctions.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698