Make GraphicBuffer a RefBase
- this gives us access to RefBase's refcounting debugging - it doesn't cost much because GraphicBuffer already has a vtable Change-Id: I7f696e421fea14b14bfaeb83880689b83e96af4d
This commit is contained in:
parent
dbf146f1d6
commit
e041716ba1
@ -24,6 +24,7 @@
|
|||||||
#include <ui/PixelFormat.h>
|
#include <ui/PixelFormat.h>
|
||||||
#include <ui/Rect.h>
|
#include <ui/Rect.h>
|
||||||
#include <utils/Flattenable.h>
|
#include <utils/Flattenable.h>
|
||||||
|
#include <utils/RefBase.h>
|
||||||
|
|
||||||
|
|
||||||
struct ANativeWindowBuffer;
|
struct ANativeWindowBuffer;
|
||||||
@ -37,10 +38,8 @@ class GraphicBufferMapper;
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
class GraphicBuffer
|
class GraphicBuffer
|
||||||
: public ANativeObjectBase<
|
: public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >,
|
||||||
ANativeWindowBuffer,
|
public Flattenable
|
||||||
GraphicBuffer,
|
|
||||||
LightRefBase<GraphicBuffer> >, public Flattenable
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user