Flutter Engine
The Flutter Engine
GrVkManagedResource.h
Go to the documentation of this file.
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#ifndef GrVkManagedResource_DEFINED
9#define GrVkManagedResource_DEFINED
10
12
13class GrVkGpu;
14
16public:
17 GrVkManagedResource(const GrVkGpu* gpu) : fGpu(gpu) {}
18
19protected:
20 const GrVkGpu* fGpu; // pointer to gpu object that can be used
21 // in subclass's freeGPUData()
22
23private:
25};
26
28public:
30
31protected:
32 GrVkGpu* fGpu; // pointer to gpu object that can be used
33 // in subclass's freeGPUData() and onRecycle().
34 // mustn't be const
35};
36
37#endif
GrVkManagedResource(const GrVkGpu *gpu)
GrVkRecycledResource(GrVkGpu *gpu)