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

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 822423004: Move most of the transform logic into the primitive processors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 5 years, 11 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 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 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 * we found LATC under. The default is LATC. 277 * we found LATC under. The default is LATC.
278 */ 278 */
279 enum LATCAlias { 279 enum LATCAlias {
280 kLATC_LATCAlias, 280 kLATC_LATCAlias,
281 kRGTC_LATCAlias, 281 kRGTC_LATCAlias,
282 k3DC_LATCAlias 282 k3DC_LATCAlias
283 }; 283 };
284 284
285 LATCAlias latcAlias() const { return fLATCAlias; } 285 LATCAlias latcAlias() const { return fLATCAlias; }
286 286
287 /**
288 * Which type of path rendering is supported, if any
289 * TODO delete this when we only support normal non-legacy nvpr
290 */
291 enum NvprSupport {
292 kNone_NvprSupport,
293 kLegacy_NvprSupport,
294 kNormal_NvprSupport,
295 };
296
297 NvprSupport nvprSupport() const { return fNvprSupport; }
298
287 private: 299 private:
288 /** 300 /**
289 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 301 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
290 * performing glCheckFrameBufferStatus for the same config. 302 * performing glCheckFrameBufferStatus for the same config.
291 */ 303 */
292 struct VerifiedColorConfigs { 304 struct VerifiedColorConfigs {
293 VerifiedColorConfigs() { 305 VerifiedColorConfigs() {
294 this->reset(); 306 this->reset();
295 } 307 }
296 308
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 357
346 int fMaxFragmentUniformVectors; 358 int fMaxFragmentUniformVectors;
347 int fMaxVertexAttributes; 359 int fMaxVertexAttributes;
348 int fMaxFragmentTextureUnits; 360 int fMaxFragmentTextureUnits;
349 int fMaxFixedFunctionTextureCoords; 361 int fMaxFixedFunctionTextureCoords;
350 362
351 MSFBOType fMSFBOType; 363 MSFBOType fMSFBOType;
352 InvalidateFBType fInvalidateFBType; 364 InvalidateFBType fInvalidateFBType;
353 MapBufferType fMapBufferType; 365 MapBufferType fMapBufferType;
354 LATCAlias fLATCAlias; 366 LATCAlias fLATCAlias;
367 NvprSupport fNvprSupport;
355 368
356 bool fRGBA8RenderbufferSupport : 1; 369 bool fRGBA8RenderbufferSupport : 1;
357 bool fBGRAIsInternalFormat : 1; 370 bool fBGRAIsInternalFormat : 1;
358 bool fTextureSwizzleSupport : 1; 371 bool fTextureSwizzleSupport : 1;
359 bool fUnpackRowLengthSupport : 1; 372 bool fUnpackRowLengthSupport : 1;
360 bool fUnpackFlipYSupport : 1; 373 bool fUnpackFlipYSupport : 1;
361 bool fPackRowLengthSupport : 1; 374 bool fPackRowLengthSupport : 1;
362 bool fPackFlipYSupport : 1; 375 bool fPackFlipYSupport : 1;
363 bool fTextureUsageSupport : 1; 376 bool fTextureUsageSupport : 1;
364 bool fTexStorageSupport : 1; 377 bool fTexStorageSupport : 1;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 bool fValue; 428 bool fValue;
416 }; 429 };
417 430
418 mutable SkTHashCache<ReadPixelsSupportedFormats, 431 mutable SkTHashCache<ReadPixelsSupportedFormats,
419 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che; 432 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che;
420 433
421 typedef GrDrawTargetCaps INHERITED; 434 typedef GrDrawTargetCaps INHERITED;
422 }; 435 };
423 436
424 #endif 437 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698