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

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

Issue 1451683002: Initial version of external_oes texture support and unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@target
Patch Set: again Created 5 years, 1 month 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 | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 GrGLenum format, 225 GrGLenum format,
226 GrGLenum type, 226 GrGLenum type,
227 GrGLenum currFboFormat) const; 227 GrGLenum currFboFormat) const;
228 228
229 bool isCoreProfile() const { return fIsCoreProfile; } 229 bool isCoreProfile() const { return fIsCoreProfile; }
230 230
231 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; } 231 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
232 232
233 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; } 233 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
234 234
235 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported.
236 bool externalTextureSupport() const { return fExternalTextureSupport; }
237
235 /** 238 /**
236 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments? 239 * Is there support for enabling/disabling sRGB writes for sRGB-capable colo r attachments?
237 * If false this does not mean sRGB is not supported but rather that if it i s supported 240 * If false this does not mean sRGB is not supported but rather that if it i s supported
238 * it cannot be turned off for configs that support it. 241 * it cannot be turned off for configs that support it.
239 */ 242 */
240 bool srgbWriteControl() const { return fSRGBWriteControl; } 243 bool srgbWriteControl() const { return fSRGBWriteControl; }
241 244
242 /** 245 /**
243 * Returns a string containing the caps info. 246 * Returns a string containing the caps info.
244 */ 247 */
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool fDebugSupport : 1; 356 bool fDebugSupport : 1;
354 bool fES2CompatibilitySupport : 1; 357 bool fES2CompatibilitySupport : 1;
355 bool fMultisampleDisableSupport : 1; 358 bool fMultisampleDisableSupport : 1;
356 bool fUseNonVBOVertexAndIndexDynamicData : 1; 359 bool fUseNonVBOVertexAndIndexDynamicData : 1;
357 bool fIsCoreProfile : 1; 360 bool fIsCoreProfile : 1;
358 bool fBindFragDataLocationSupport : 1; 361 bool fBindFragDataLocationSupport : 1;
359 bool fSRGBWriteControl : 1; 362 bool fSRGBWriteControl : 1;
360 bool fRGBA8888PixelsOpsAreSlow : 1; 363 bool fRGBA8888PixelsOpsAreSlow : 1;
361 bool fPartialFBOReadIsSlow : 1; 364 bool fPartialFBOReadIsSlow : 1;
362 bool fBindUniformLocationSupport : 1; 365 bool fBindUniformLocationSupport : 1;
366 bool fExternalTextureSupport : 1;
363 367
364 struct ReadPixelsSupportedFormat { 368 struct ReadPixelsSupportedFormat {
365 GrGLenum fFormat; 369 GrGLenum fFormat;
366 GrGLenum fType; 370 GrGLenum fType;
367 GrGLenum fFboFormat; 371 GrGLenum fFboFormat;
368 372
369 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 373 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
370 return fFormat == rhs.fFormat 374 return fFormat == rhs.fFormat
371 && fType == rhs.fType 375 && fType == rhs.fType
372 && fFboFormat == rhs.fFboFormat; 376 && fFboFormat == rhs.fFboFormat;
373 } 377 }
374 }; 378 };
375 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; 379 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e;
376 380
377 typedef GrCaps INHERITED; 381 typedef GrCaps INHERITED;
378 }; 382 };
379 383
380 #endif 384 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698