* commit '483fbb3befcfc5d113cf5931cbf32e59a99c21c6': Make GraphicBuffer a RefBase Fix RefBase debugging. O_CREAT must specify the mode.
This commit is contained in:
commit
e8e7c46ae5
@ -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:
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ public:
|
|||||||
{
|
{
|
||||||
char name[100];
|
char name[100];
|
||||||
snprintf(name, 100, "/data/%p.stack", this);
|
snprintf(name, 100, "/data/%p.stack", this);
|
||||||
int rc = open(name, O_RDWR | O_CREAT | O_APPEND);
|
int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644);
|
||||||
if (rc >= 0) {
|
if (rc >= 0) {
|
||||||
write(rc, text.string(), text.length());
|
write(rc, text.string(), text.length());
|
||||||
close(rc);
|
close(rc);
|
||||||
|
Loading…
Reference in New Issue
Block a user