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

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

Issue 1017803002: Revert of Improve tracking of bound FBOs in GrGLGpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 GrGLenum format, 260 GrGLenum format,
261 GrGLenum type, 261 GrGLenum type,
262 GrGLenum currFboFormat) const; 262 GrGLenum currFboFormat) const;
263 263
264 bool isCoreProfile() const { return fIsCoreProfile; } 264 bool isCoreProfile() const { return fIsCoreProfile; }
265 265
266 266
267 bool fullClearIsFree() const { return fFullClearIsFree; } 267 bool fullClearIsFree() const { return fFullClearIsFree; }
268 268
269 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } 269 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; }
270
271 bool preferBindingToReadAndDrawFramebuffer() const {
272 return fPreferBindingToReadAndDrawFramebuffer;
273 }
274 270
275 /** 271 /**
276 * Returns a string containing the caps info. 272 * Returns a string containing the caps info.
277 */ 273 */
278 SkString dump() const SK_OVERRIDE; 274 SkString dump() const SK_OVERRIDE;
279 275
280 /** 276 /**
281 * LATC can appear under one of three possible names. In order to know 277 * LATC can appear under one of three possible names. In order to know
282 * which GL internal format to use, we need to keep track of which name 278 * which GL internal format to use, we need to keep track of which name
283 * we found LATC under. The default is LATC. 279 * we found LATC under. The default is LATC.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 bool fTwoFormatLimit : 1; 382 bool fTwoFormatLimit : 1;
387 bool fFragCoordsConventionSupport : 1; 383 bool fFragCoordsConventionSupport : 1;
388 bool fVertexArrayObjectSupport : 1; 384 bool fVertexArrayObjectSupport : 1;
389 bool fES2CompatibilitySupport : 1; 385 bool fES2CompatibilitySupport : 1;
390 bool fUseNonVBOVertexAndIndexDynamicData : 1; 386 bool fUseNonVBOVertexAndIndexDynamicData : 1;
391 bool fIsCoreProfile : 1; 387 bool fIsCoreProfile : 1;
392 bool fFullClearIsFree : 1; 388 bool fFullClearIsFree : 1;
393 bool fDropsTileOnZeroDivide : 1; 389 bool fDropsTileOnZeroDivide : 1;
394 bool fFBFetchSupport : 1; 390 bool fFBFetchSupport : 1;
395 bool fFBFetchNeedsCustomOutput : 1; 391 bool fFBFetchNeedsCustomOutput : 1;
396 bool fPreferBindingToReadAndDrawFramebuffer : 1;
397 392
398 const char* fFBFetchColorName; 393 const char* fFBFetchColorName;
399 const char* fFBFetchExtensionString; 394 const char* fFBFetchExtensionString;
400 395
401 struct ReadPixelsSupportedFormat { 396 struct ReadPixelsSupportedFormat {
402 GrGLenum fFormat; 397 GrGLenum fFormat;
403 GrGLenum fType; 398 GrGLenum fType;
404 GrGLenum fFboFormat; 399 GrGLenum fFboFormat;
405 400
406 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 401 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
407 return fFormat == rhs.fFormat 402 return fFormat == rhs.fFormat
408 && fType == rhs.fType 403 && fType == rhs.fType
409 && fFboFormat == rhs.fFboFormat; 404 && fFboFormat == rhs.fFboFormat;
410 } 405 }
411 static uint32_t Hash(const ReadPixelsSupportedFormat& r) { 406 static uint32_t Hash(const ReadPixelsSupportedFormat& r) {
412 return SkChecksum::Murmur3(reinterpret_cast<const uint32_t*>(&r), si zeof(r)); 407 return SkChecksum::Murmur3(reinterpret_cast<const uint32_t*>(&r), si zeof(r));
413 } 408 }
414 }; 409 };
415 410
416 mutable SkTHashMap<ReadPixelsSupportedFormat, bool, ReadPixelsSupportedForma t::Hash> 411 mutable SkTHashMap<ReadPixelsSupportedFormat, bool, ReadPixelsSupportedForma t::Hash>
417 fReadPixelsSupportedCache; 412 fReadPixelsSupportedCache;
418 413
419 typedef GrDrawTargetCaps INHERITED; 414 typedef GrDrawTargetCaps INHERITED;
420 }; 415 };
421 416
422 #endif 417 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698