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

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

Issue 1376293003: Fix for 2056 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback incorporated 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
« 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 /// Does ReadPixels support the provided format/type combo? 229 /// Does ReadPixels support the provided format/type combo?
230 bool readPixelsSupported(const GrGLInterface* intf, 230 bool readPixelsSupported(const GrGLInterface* intf,
231 GrGLenum format, 231 GrGLenum format,
232 GrGLenum type, 232 GrGLenum type,
233 GrGLenum currFboFormat) const; 233 GrGLenum currFboFormat) const;
234 234
235 bool isCoreProfile() const { return fIsCoreProfile; } 235 bool isCoreProfile() const { return fIsCoreProfile; }
236 236
237 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; } 237 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
238 238
239 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
240
239 /** 241 /**
240 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments? 242 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments?
241 * If false this does not mean sRGB is not supported but rather that if it i s supported 243 * If false this does not mean sRGB is not supported but rather that if it i s supported
242 * it cannot be turned off for configs that support it. 244 * it cannot be turned off for configs that support it.
243 */ 245 */
244 bool srgbWriteControl() const { return fSRGBWriteControl; } 246 bool srgbWriteControl() const { return fSRGBWriteControl; }
245 247
246 /** 248 /**
247 * Returns a string containing the caps info. 249 * Returns a string containing the caps info.
248 */ 250 */
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool fDirectStateAccessSupport : 1; 355 bool fDirectStateAccessSupport : 1;
354 bool fDebugSupport : 1; 356 bool fDebugSupport : 1;
355 bool fES2CompatibilitySupport : 1; 357 bool fES2CompatibilitySupport : 1;
356 bool fMultisampleDisableSupport : 1; 358 bool fMultisampleDisableSupport : 1;
357 bool fUseNonVBOVertexAndIndexDynamicData : 1; 359 bool fUseNonVBOVertexAndIndexDynamicData : 1;
358 bool fIsCoreProfile : 1; 360 bool fIsCoreProfile : 1;
359 bool fBindFragDataLocationSupport : 1; 361 bool fBindFragDataLocationSupport : 1;
360 bool fSRGBWriteControl : 1; 362 bool fSRGBWriteControl : 1;
361 bool fRGBA8888PixelsOpsAreSlow : 1; 363 bool fRGBA8888PixelsOpsAreSlow : 1;
362 bool fPartialFBOReadIsSlow : 1; 364 bool fPartialFBOReadIsSlow : 1;
365 bool fBindUniformLocationSupport : 1;
363 366
364 struct ReadPixelsSupportedFormat { 367 struct ReadPixelsSupportedFormat {
365 GrGLenum fFormat; 368 GrGLenum fFormat;
366 GrGLenum fType; 369 GrGLenum fType;
367 GrGLenum fFboFormat; 370 GrGLenum fFboFormat;
368 371
369 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 372 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
370 return fFormat == rhs.fFormat 373 return fFormat == rhs.fFormat
371 && fType == rhs.fType 374 && fType == rhs.fType
372 && fFboFormat == rhs.fFboFormat; 375 && fFboFormat == rhs.fFboFormat;
373 } 376 }
374 }; 377 };
375 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; 378 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e;
376 379
377 typedef GrCaps INHERITED; 380 typedef GrCaps INHERITED;
378 }; 381 };
379 382
380 #endif 383 #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