2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
9 #include "GrCacheable.h"
11 uint32_t GrCacheable::getGenerationID() const {
12 static int32_t gPathRefGenerationID;
14 fGenID = static_cast<uint32_t>(sk_atomic_inc(&gPathRefGenerationID) + 1);