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

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

Issue 807143006: fix for FB fetch on nexus 10 ES3.0 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.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 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 kES_EXT_MsToTexture_MSFBOType == fMSFBOType; 165 kES_EXT_MsToTexture_MSFBOType == fMSFBOType;
166 } 166 }
167 167
168 /** 168 /**
169 * Some helper functions for encapsulating various extensions to read FB Buf fer on openglES 169 * Some helper functions for encapsulating various extensions to read FB Buf fer on openglES
170 * 170 *
171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar to this effect 171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar to this effect
172 */ 172 */
173 bool fbFetchSupport() const { return fFBFetchSupport; } 173 bool fbFetchSupport() const { return fFBFetchSupport; }
174 174
175 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; }
176
175 const char* fbFetchColorName() const { return fFBFetchColorName; } 177 const char* fbFetchColorName() const { return fFBFetchColorName; }
176 178
177 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; } 179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
178 180
179 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } 181 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; }
180 182
181 /// What type of buffer mapping is supported? 183 /// What type of buffer mapping is supported?
182 MapBufferType mapBufferType() const { return fMapBufferType; } 184 MapBufferType mapBufferType() const { return fMapBufferType; }
183 185
184 /** 186 /**
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 bool fTextureRedSupport : 1; 367 bool fTextureRedSupport : 1;
366 bool fImagingSupport : 1; 368 bool fImagingSupport : 1;
367 bool fTwoFormatLimit : 1; 369 bool fTwoFormatLimit : 1;
368 bool fFragCoordsConventionSupport : 1; 370 bool fFragCoordsConventionSupport : 1;
369 bool fVertexArrayObjectSupport : 1; 371 bool fVertexArrayObjectSupport : 1;
370 bool fES2CompatibilitySupport : 1; 372 bool fES2CompatibilitySupport : 1;
371 bool fUseNonVBOVertexAndIndexDynamicData : 1; 373 bool fUseNonVBOVertexAndIndexDynamicData : 1;
372 bool fIsCoreProfile : 1; 374 bool fIsCoreProfile : 1;
373 bool fFullClearIsFree : 1; 375 bool fFullClearIsFree : 1;
374 bool fDropsTileOnZeroDivide : 1; 376 bool fDropsTileOnZeroDivide : 1;
375 // TODO(joshualitt) encapsulate the FB Fetch logic in a feature object
376 bool fFBFetchSupport : 1; 377 bool fFBFetchSupport : 1;
378 bool fFBFetchNeedsCustomOutput : 1;
377 379
378 const char* fFBFetchColorName; 380 const char* fFBFetchColorName;
379 const char* fFBFetchExtensionString; 381 const char* fFBFetchExtensionString;
380 382
381 class ReadPixelsSupportedFormats { 383 class ReadPixelsSupportedFormats {
382 public: 384 public:
383 struct Key { 385 struct Key {
384 GrGLenum fFormat; 386 GrGLenum fFormat;
385 GrGLenum fType; 387 GrGLenum fType;
386 GrGLenum fFboFormat; 388 GrGLenum fFboFormat;
(...skipping 28 matching lines...) Expand all
415 bool fValue; 417 bool fValue;
416 }; 418 };
417 419
418 mutable SkTHashCache<ReadPixelsSupportedFormats, 420 mutable SkTHashCache<ReadPixelsSupportedFormats,
419 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che; 421 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che;
420 422
421 typedef GrDrawTargetCaps INHERITED; 423 typedef GrDrawTargetCaps INHERITED;
422 }; 424 };
423 425
424 #endif 426 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698