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

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

Issue 254083002: Fail to create GrContext when we get a NULL for a GL/GLSL version string (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: check GrGLCaps::init return Created 6 years, 7 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 | Annotate | Revision Log
« 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 /** 99 /**
100 * Resets the caps such that nothing is supported. 100 * Resets the caps such that nothing is supported.
101 */ 101 */
102 virtual void reset() SK_OVERRIDE; 102 virtual void reset() SK_OVERRIDE;
103 103
104 /** 104 /**
105 * Initializes the GrGLCaps to the set of features supported in the current 105 * Initializes the GrGLCaps to the set of features supported in the current
106 * OpenGL context accessible via ctxInfo. 106 * OpenGL context accessible via ctxInfo.
107 */ 107 */
108 void init(const GrGLContextInfo& ctxInfo, const GrGLInterface* interface); 108 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* interface);
109 109
110 /** 110 /**
111 * Call to note that a color config has been verified as a valid color 111 * Call to note that a color config has been verified as a valid color
112 * attachment. This may save future calls to glCheckFramebufferStatus 112 * attachment. This may save future calls to glCheckFramebufferStatus
113 * using isConfigVerifiedColorAttachment(). 113 * using isConfigVerifiedColorAttachment().
114 */ 114 */
115 void markConfigAsValidColorAttachment(GrPixelConfig config) { 115 void markConfigAsValidColorAttachment(GrPixelConfig config) {
116 fVerifiedColorConfigs.markVerified(config); 116 fVerifiedColorConfigs.markVerified(config);
117 } 117 }
118 118
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool fUseNonVBOVertexAndIndexDynamicData : 1; 341 bool fUseNonVBOVertexAndIndexDynamicData : 1;
342 bool fIsCoreProfile : 1; 342 bool fIsCoreProfile : 1;
343 bool fFullClearIsFree : 1; 343 bool fFullClearIsFree : 1;
344 bool fDropsTileOnZeroDivide : 1; 344 bool fDropsTileOnZeroDivide : 1;
345 bool fMapSubSupport : 1; 345 bool fMapSubSupport : 1;
346 346
347 typedef GrDrawTargetCaps INHERITED; 347 typedef GrDrawTargetCaps INHERITED;
348 }; 348 };
349 349
350 #endif 350 #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