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

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

Issue 1615023003: Add ability to query read pixels support without a render target. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixsupp
Patch Set: add newline Created 4 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') | src/gpu/gl/GrGLGpu.h » ('J')
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 /// Is there support for ES2 compatability? 280 /// Is there support for ES2 compatability?
281 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } 281 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; }
282 282
283 /// Can we call glDisable(GL_MULTISAMPLE)? 283 /// Can we call glDisable(GL_MULTISAMPLE)?
284 bool multisampleDisableSupport() const { return fMultisampleDisableSupport; } 284 bool multisampleDisableSupport() const { return fMultisampleDisableSupport; }
285 285
286 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt. 286 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt.
287 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; } 287 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; }
288 288
289 /// Does ReadPixels support the provided format/type combo? 289 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren derTargetConfig?
290 bool readPixelsSupported(GrGLRenderTarget* target, 290 bool readPixelsSupported(GrPixelConfig renderTargetConfig,
291 GrPixelConfig readConfig, 291 GrPixelConfig readConfig,
292 std::function<void (GrGLenum, GrGLint*)> getInteger v, 292 std::function<void (GrGLenum, GrGLint*)> getInteger v,
293 std::function<void (GrGLRenderTarget*)> bindRenderT arget) const; 293 std::function<bool ()> bindRenderTarget) const;
294 294
295 bool isCoreProfile() const { return fIsCoreProfile; } 295 bool isCoreProfile() const { return fIsCoreProfile; }
296 296
297 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; } 297 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
298 298
299 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; } 299 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
300 300
301 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported. 301 /// Are textures with GL_TEXTURE_EXTERNAL_OES type supported.
302 bool externalTextureSupport() const { return fExternalTextureSupport; } 302 bool externalTextureSupport() const { return fExternalTextureSupport; }
303 303
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 GrSwizzle fSwizzle; 457 GrSwizzle fSwizzle;
458 }; 458 };
459 459
460 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 460 ConfigInfo fConfigTable[kGrPixelConfigCnt];
461 461
462 typedef GrCaps INHERITED; 462 typedef GrCaps INHERITED;
463 }; 463 };
464 464
465 #endif 465 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLGpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698