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

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

Issue 1570173004: This CL adds glTexStorage support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moving check for TexStorage support inside allocate_and_populate_* calls. Changing the caps to indi… Created 4 years, 9 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/GrTest.cpp » ('j') | src/gpu/gl/GrGLCaps.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef GrCaps_DEFINED 8 #ifndef GrCaps_DEFINED
9 #define GrCaps_DEFINED 9 #define GrCaps_DEFINED
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (this->usesMixedSamples()) { 227 if (this->usesMixedSamples()) {
228 return this->maxStencilSampleCount(); 228 return this->maxStencilSampleCount();
229 } else { 229 } else {
230 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt()); 230 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt());
231 } 231 }
232 } 232 }
233 233
234 234
235 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; 235 virtual bool isConfigTexturable(GrPixelConfig config) const = 0;
236 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; 236 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
237 virtual bool isConfigTexSupportEnabled(GrPixelConfig config) const = 0;
bsalomon 2016/02/27 14:18:54 We shouldn't need to expose this at the GrCaps lev
cblume 2016/02/28 02:44:42 Done.
237 238
238 bool suppressPrints() const { return fSuppressPrints; } 239 bool suppressPrints() const { return fSuppressPrints; }
239 240
240 bool immediateFlush() const { return fImmediateFlush; } 241 bool immediateFlush() const { return fImmediateFlush; }
241 242
242 bool drawPathMasksToCompressedTexturesSupport() const { 243 bool drawPathMasksToCompressedTexturesSupport() const {
243 return fDrawPathMasksToCompressedTextureSupport; 244 return fDrawPathMasksToCompressedTextureSupport;
244 } 245 }
245 246
246 size_t geometryBufferMapThreshold() const { 247 size_t geometryBufferMapThreshold() const {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 310 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
310 311
311 bool fSuppressPrints : 1; 312 bool fSuppressPrints : 1;
312 bool fImmediateFlush: 1; 313 bool fImmediateFlush: 1;
313 bool fDrawPathMasksToCompressedTextureSupport : 1; 314 bool fDrawPathMasksToCompressedTextureSupport : 1;
314 315
315 typedef SkRefCnt INHERITED; 316 typedef SkRefCnt INHERITED;
316 }; 317 };
317 318
318 #endif 319 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrTest.cpp » ('j') | src/gpu/gl/GrGLCaps.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698