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

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

Issue 2489643002: Fix query for GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT for GrPixelConfigs that aren't renderable (Closed)
Patch Set: fix Created 4 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 | « 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 /// Are the baseInstance fields supported in indirect draw commands? 313 /// Are the baseInstance fields supported in indirect draw commands?
314 bool baseInstanceSupport() const { return fBaseInstanceSupport; } 314 bool baseInstanceSupport() const { return fBaseInstanceSupport; }
315 315
316 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt. 316 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt.
317 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; } 317 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; }
318 318
319 /// Does ReadPixels support reading readConfig pixels from a FBO that is sur faceConfig? 319 /// Does ReadPixels support reading readConfig pixels from a FBO that is sur faceConfig?
320 bool readPixelsSupported(GrPixelConfig surfaceConfig, 320 bool readPixelsSupported(GrPixelConfig surfaceConfig,
321 GrPixelConfig readConfig, 321 GrPixelConfig readConfig,
322 std::function<void (GrGLenum, GrGLint*)> getInteger v, 322 std::function<void (GrGLenum, GrGLint*)> getInteger v,
323 std::function<bool ()> bindRenderTarget) const; 323 std::function<bool ()> bindRenderTarget,
324 std::function<void ()> unbindRenderTarget) const;
324 325
325 bool isCoreProfile() const { return fIsCoreProfile; } 326 bool isCoreProfile() const { return fIsCoreProfile; }
326 327
327 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; } 328 bool bindFragDataLocationSupport() const { return fBindFragDataLocationSuppo rt; }
328 329
329 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; } 330 bool bindUniformLocationSupport() const { return fBindUniformLocationSupport ; }
330 331
331 /// Are textures with GL_TEXTURE_RECTANGLE type supported. 332 /// Are textures with GL_TEXTURE_RECTANGLE type supported.
332 bool rectangleTextureSupport() const { return fRectangleTextureSupport; } 333 bool rectangleTextureSupport() const { return fRectangleTextureSupport; }
333 334
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 493
493 GrSwizzle fSwizzle; 494 GrSwizzle fSwizzle;
494 }; 495 };
495 496
496 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 497 ConfigInfo fConfigTable[kGrPixelConfigCnt];
497 498
498 typedef GrCaps INHERITED; 499 typedef GrCaps INHERITED;
499 }; 500 };
500 501
501 #endif 502 #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