blob: a862bb640cebef1a10fa3c6bd92b8f2cd228f976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrUninstantiateProxyTracker_DEFINED
#define GrUninstantiateProxyTracker_DEFINED
#include "SkTArray.h"
class GrSurfaceProxy;
class GrUninstantiateProxyTracker {
public:
GrUninstantiateProxyTracker() {}
// Adds a proxy which will be uninstantiated at the end of flush. The same proxy may not be
// added multiple times.
void addProxy(GrSurfaceProxy* proxy);
// Loops through all tracked proxies and uninstantiates them.
void uninstantiateAllProxies();
private:
SkTArray<GrSurfaceProxy*> fProxies;
};
#endif
|