2 * Copyright 2019 Google LLC
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkAutoreleasePool_DEFINED
9 #define SkAutoreleasePool_DEFINED
12 * Helper class for managing an autorelease pool for Metal. On other platforms this will
13 * do nothing so there's no need to #ifdef it out.
16 class AutoreleasePool {
27 class AutoreleasePool {
30 ~AutoreleasePool() = default;