src/gpu/ganesh/GrManagedResource.cpp
raw| 1 | /* |
| 2 | * Copyright 2020 Google LLC |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "src/gpu/ganesh/GrManagedResource.h" |
| 9 | |
| 10 | #ifdef SK_TRACE_MANAGED_RESOURCES |
| 11 | std::atomic<uint32_t> GrManagedResource::fKeyCounter{0}; |
| 12 | |
| 13 | GrManagedResource::Trace* GrManagedResource::GetTrace() { |
| 14 | static Trace kTrace; |
| 15 | return &kTrace; |
| 16 | } |
| 17 | |
| 18 | #endif |