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

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: move to ToT 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 | « src/gpu/GrRenderTarget.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 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 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } 250 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; }
254 251
255 private: 252 private:
256 /** 253 /**
257 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 254 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
258 * performing glCheckFrameBufferStatus for the same config. 255 * performing glCheckFrameBufferStatus for the same config.
259 */ 256 */
260 struct VerifiedColorConfigs { 257 struct VerifiedColorConfigs {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 bool fTextureUsageSupport : 1; 322 bool fTextureUsageSupport : 1;
326 bool fTexStorageSupport : 1; 323 bool fTexStorageSupport : 1;
327 bool fTextureRedSupport : 1; 324 bool fTextureRedSupport : 1;
328 bool fImagingSupport : 1; 325 bool fImagingSupport : 1;
329 bool fTwoFormatLimit : 1; 326 bool fTwoFormatLimit : 1;
330 bool fFragCoordsConventionSupport : 1; 327 bool fFragCoordsConventionSupport : 1;
331 bool fVertexArrayObjectSupport : 1; 328 bool fVertexArrayObjectSupport : 1;
332 bool fUseNonVBOVertexAndIndexDynamicData : 1; 329 bool fUseNonVBOVertexAndIndexDynamicData : 1;
333 bool fIsCoreProfile : 1; 330 bool fIsCoreProfile : 1;
334 bool fFixedFunctionSupport : 1; 331 bool fFixedFunctionSupport : 1;
335 bool fDiscardFBSupport : 1;
336 bool fFullClearIsFree : 1; 332 bool fFullClearIsFree : 1;
337 bool fDropsTileOnZeroDivide : 1; 333 bool fDropsTileOnZeroDivide : 1;
338 334
339 typedef GrDrawTargetCaps INHERITED; 335 typedef GrDrawTargetCaps INHERITED;
340 }; 336 };
341 337
342 #endif 338 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrRenderTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698