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

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

Issue 1201623003: fix for calling bindFragDataLocation on OpenGL 2.1 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 bool readPixelsSupported(const GrGLInterface* intf, 250 bool readPixelsSupported(const GrGLInterface* intf,
251 GrGLenum format, 251 GrGLenum format,
252 GrGLenum type, 252 GrGLenum type,
253 GrGLenum currFboFormat) const; 253 GrGLenum currFboFormat) const;
254 254
255 bool isCoreProfile() const { return fIsCoreProfile; } 255 bool isCoreProfile() const { return fIsCoreProfile; }
256 256
257 257
258 bool fullClearIsFree() const { return fFullClearIsFree; } 258 bool fullClearIsFree() const { return fFullClearIsFree; }
259 259
260 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
261
260 /** 262 /**
261 * Returns a string containing the caps info. 263 * Returns a string containing the caps info.
262 */ 264 */
263 SkString dump() const override; 265 SkString dump() const override;
264 266
265 /** 267 /**
266 * LATC can appear under one of three possible names. In order to know 268 * LATC can appear under one of three possible names. In order to know
267 * which GL internal format to use, we need to keep track of which name 269 * which GL internal format to use, we need to keep track of which name
268 * we found LATC under. The default is LATC. 270 * we found LATC under. The default is LATC.
269 */ 271 */
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 bool fFragCoordsConventionSupport : 1; 362 bool fFragCoordsConventionSupport : 1;
361 bool fVertexArrayObjectSupport : 1; 363 bool fVertexArrayObjectSupport : 1;
362 bool fInstancedDrawingSupport : 1; 364 bool fInstancedDrawingSupport : 1;
363 bool fDirectStateAccessSupport : 1; 365 bool fDirectStateAccessSupport : 1;
364 bool fDebugSupport : 1; 366 bool fDebugSupport : 1;
365 bool fES2CompatibilitySupport : 1; 367 bool fES2CompatibilitySupport : 1;
366 bool fMultisampleDisableSupport : 1; 368 bool fMultisampleDisableSupport : 1;
367 bool fUseNonVBOVertexAndIndexDynamicData : 1; 369 bool fUseNonVBOVertexAndIndexDynamicData : 1;
368 bool fIsCoreProfile : 1; 370 bool fIsCoreProfile : 1;
369 bool fFullClearIsFree : 1; 371 bool fFullClearIsFree : 1;
372 bool fBindFragDataLocationSupport : 1;
370 373
371 struct ReadPixelsSupportedFormat { 374 struct ReadPixelsSupportedFormat {
372 GrGLenum fFormat; 375 GrGLenum fFormat;
373 GrGLenum fType; 376 GrGLenum fType;
374 GrGLenum fFboFormat; 377 GrGLenum fFboFormat;
375 378
376 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 379 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
377 return fFormat == rhs.fFormat 380 return fFormat == rhs.fFormat
378 && fType == rhs.fType 381 && fType == rhs.fType
379 && fFboFormat == rhs.fFboFormat; 382 && fFboFormat == rhs.fFboFormat;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 465
463 AdvBlendEqInteraction fAdvBlendEqInteraction; 466 AdvBlendEqInteraction fAdvBlendEqInteraction;
464 467
465 friend class GrGLCaps; // For initialization. 468 friend class GrGLCaps; // For initialization.
466 469
467 typedef GrShaderCaps INHERITED; 470 typedef GrShaderCaps INHERITED;
468 }; 471 };
469 472
470 473
471 #endif 474 #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