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

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

Issue 211683002: Add discard API to SkCanvas, plumb it to glDiscardFramebuffer() (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: assert that clear color is pm Created 6 years, 9 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
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 /// Does ReadPixels support the provided format/type combo? 239 /// Does ReadPixels support the provided format/type combo?
240 bool readPixelsSupported(const GrGLInterface* intf, 240 bool readPixelsSupported(const GrGLInterface* intf,
241 GrGLenum format, 241 GrGLenum format,
242 GrGLenum type) const; 242 GrGLenum type) const;
243 243
244 bool isCoreProfile() const { return fIsCoreProfile; } 244 bool isCoreProfile() const { return fIsCoreProfile; }
245 245
246 bool fixedFunctionSupport() const { return fFixedFunctionSupport; } 246 bool fixedFunctionSupport() const { return fFixedFunctionSupport; }
247 247
248 /// Is there support for discarding the frame buffer
249 bool discardFBSupport() const { return fDiscardFBSupport; }
250
251 bool fullClearIsFree() const { return fFullClearIsFree; } 248 bool fullClearIsFree() const { return fFullClearIsFree; }
252 249
253 private: 250 private:
254 /** 251 /**
255 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 252 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
256 * performing glCheckFrameBufferStatus for the same config. 253 * performing glCheckFrameBufferStatus for the same config.
257 */ 254 */
258 struct VerifiedColorConfigs { 255 struct VerifiedColorConfigs {
259 VerifiedColorConfigs() { 256 VerifiedColorConfigs() {
260 this->reset(); 257 this->reset();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 bool fTextureUsageSupport : 1; 320 bool fTextureUsageSupport : 1;
324 bool fTexStorageSupport : 1; 321 bool fTexStorageSupport : 1;
325 bool fTextureRedSupport : 1; 322 bool fTextureRedSupport : 1;
326 bool fImagingSupport : 1; 323 bool fImagingSupport : 1;
327 bool fTwoFormatLimit : 1; 324 bool fTwoFormatLimit : 1;
328 bool fFragCoordsConventionSupport : 1; 325 bool fFragCoordsConventionSupport : 1;
329 bool fVertexArrayObjectSupport : 1; 326 bool fVertexArrayObjectSupport : 1;
330 bool fUseNonVBOVertexAndIndexDynamicData : 1; 327 bool fUseNonVBOVertexAndIndexDynamicData : 1;
331 bool fIsCoreProfile : 1; 328 bool fIsCoreProfile : 1;
332 bool fFixedFunctionSupport : 1; 329 bool fFixedFunctionSupport : 1;
333 bool fDiscardFBSupport : 1;
334 bool fFullClearIsFree : 1; 330 bool fFullClearIsFree : 1;
335 331
336 typedef GrDrawTargetCaps INHERITED; 332 typedef GrDrawTargetCaps INHERITED;
337 }; 333 };
338 334
339 #endif 335 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698