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

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

Issue 231773003: Add GL_CHROMIUM_map_sub functions to GrGLInterface and bit to GrGLCaps. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 | « include/gpu/gl/GrGLInterface.h ('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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 GrGLenum type) const; 252 GrGLenum type) const;
253 253
254 bool isCoreProfile() const { return fIsCoreProfile; } 254 bool isCoreProfile() const { return fIsCoreProfile; }
255 255
256 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } 256 bool fixedFunctionSupport() const { return fFixedFunctionSupport; }
257 257
258 bool fullClearIsFree() const { return fFullClearIsFree; } 258 bool fullClearIsFree() const { return fFullClearIsFree; }
259 259
260 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } 260 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; }
261 261
262 /// Is GL_CHROMIUM_map_sub supported?
263 bool mapSubSupport() const { return fMapSubSupport; }
264
262 private: 265 private:
263 /** 266 /**
264 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 267 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
265 * performing glCheckFrameBufferStatus for the same config. 268 * performing glCheckFrameBufferStatus for the same config.
266 */ 269 */
267 struct VerifiedColorConfigs { 270 struct VerifiedColorConfigs {
268 VerifiedColorConfigs() { 271 VerifiedColorConfigs() {
269 this->reset(); 272 this->reset();
270 } 273 }
271 274
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 bool fTextureRedSupport : 1; 337 bool fTextureRedSupport : 1;
335 bool fImagingSupport : 1; 338 bool fImagingSupport : 1;
336 bool fTwoFormatLimit : 1; 339 bool fTwoFormatLimit : 1;
337 bool fFragCoordsConventionSupport : 1; 340 bool fFragCoordsConventionSupport : 1;
338 bool fVertexArrayObjectSupport : 1; 341 bool fVertexArrayObjectSupport : 1;
339 bool fUseNonVBOVertexAndIndexDynamicData : 1; 342 bool fUseNonVBOVertexAndIndexDynamicData : 1;
340 bool fIsCoreProfile : 1; 343 bool fIsCoreProfile : 1;
341 bool fFixedFunctionSupport : 1; 344 bool fFixedFunctionSupport : 1;
342 bool fFullClearIsFree : 1; 345 bool fFullClearIsFree : 1;
343 bool fDropsTileOnZeroDivide : 1; 346 bool fDropsTileOnZeroDivide : 1;
347 bool fMapSubSupport : 1;
344 348
345 typedef GrDrawTargetCaps INHERITED; 349 typedef GrDrawTargetCaps INHERITED;
346 }; 350 };
347 351
348 #endif 352 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698