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

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

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