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

Side by Side Diff: include/gpu/GrTypesPriv.h

Issue 1862043002: Refactor to separate backend object lifecycle and GpuResource budget decision (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix unrelated GrBuffer::onGpuMemorySize() lack of override keyword compile error Created 4 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
« no previous file with comments | « include/gpu/GrTexture.h ('k') | src/gpu/GrGpu.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 #ifndef GrTypesPriv_DEFINED 8 #ifndef GrTypesPriv_DEFINED
9 #define GrTypesPriv_DEFINED 9 #define GrTypesPriv_DEFINED
10 10
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 #ifdef SK_DEBUG 457 #ifdef SK_DEBUG
458 // Takes a pointer to a GrCaps, and will suppress prints if required 458 // Takes a pointer to a GrCaps, and will suppress prints if required
459 #define GrCapsDebugf(caps, ...) \ 459 #define GrCapsDebugf(caps, ...) \
460 if (!caps->suppressPrints()) { \ 460 if (!caps->suppressPrints()) { \
461 SkDebugf(__VA_ARGS__); \ 461 SkDebugf(__VA_ARGS__); \
462 } 462 }
463 #else 463 #else
464 #define GrCapsDebugf(caps, ...) 464 #define GrCapsDebugf(caps, ...)
465 #endif 465 #endif
466 466
467 /**
468 * Specifies if the holder owns the backend, OpenGL or Vulkan, object.
469 */
470 enum class GrBackendObjectOwnership : bool {
471 /** Holder does not destroy the backend object. */
472 kBorrowed = false,
473 /** Holder destroys the backend object. */
474 kOwned = true
475 };
476
467 #endif 477 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTexture.h ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698