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

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

Issue 53823003: Add can-ignore-rect hint to clear call (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 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 | 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 248 /// Is there support for discarding the frame buffer
249 bool discardFBSupport() const { return fDiscardFBSupport; } 249 bool discardFBSupport() const { return fDiscardFBSupport; }
250 250
251 bool fullClearIsFree() const { return fFullClearIsFree; }
252
251 private: 253 private:
252 /** 254 /**
253 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 255 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
254 * performing glCheckFrameBufferStatus for the same config. 256 * performing glCheckFrameBufferStatus for the same config.
255 */ 257 */
256 struct VerifiedColorConfigs { 258 struct VerifiedColorConfigs {
257 VerifiedColorConfigs() { 259 VerifiedColorConfigs() {
258 this->reset(); 260 this->reset();
259 } 261 }
260 262
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool fTexStorageSupport : 1; 324 bool fTexStorageSupport : 1;
323 bool fTextureRedSupport : 1; 325 bool fTextureRedSupport : 1;
324 bool fImagingSupport : 1; 326 bool fImagingSupport : 1;
325 bool fTwoFormatLimit : 1; 327 bool fTwoFormatLimit : 1;
326 bool fFragCoordsConventionSupport : 1; 328 bool fFragCoordsConventionSupport : 1;
327 bool fVertexArrayObjectSupport : 1; 329 bool fVertexArrayObjectSupport : 1;
328 bool fUseNonVBOVertexAndIndexDynamicData : 1; 330 bool fUseNonVBOVertexAndIndexDynamicData : 1;
329 bool fIsCoreProfile : 1; 331 bool fIsCoreProfile : 1;
330 bool fFixedFunctionSupport : 1; 332 bool fFixedFunctionSupport : 1;
331 bool fDiscardFBSupport : 1; 333 bool fDiscardFBSupport : 1;
334 bool fFullClearIsFree : 1;
332 335
333 typedef GrDrawTargetCaps INHERITED; 336 typedef GrDrawTargetCaps INHERITED;
334 }; 337 };
335 338
336 #endif 339 #endif
OLDNEW
« src/gpu/GrDrawTarget.h ('K') | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698