Merge changes I7f696e42,I51c6df3c into jb-mr2-dev
* changes: Make GraphicBuffer a RefBase Fix RefBase debugging. O_CREAT must specify the mode.
This commit is contained in:
commit
1f758231c2
@ -24,6 +24,7 @@
|
||||
#include <ui/PixelFormat.h>
|
||||
#include <ui/Rect.h>
|
||||
#include <utils/Flattenable.h>
|
||||
#include <utils/RefBase.h>
|
||||
|
||||
|
||||
struct ANativeWindowBuffer;
|
||||
@ -37,10 +38,8 @@ class GraphicBufferMapper;
|
||||
// ===========================================================================
|
||||
|
||||
class GraphicBuffer
|
||||
: public ANativeObjectBase<
|
||||
ANativeWindowBuffer,
|
||||
GraphicBuffer,
|
||||
LightRefBase<GraphicBuffer> >, public Flattenable
|
||||
: public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >,
|
||||
public Flattenable
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -199,7 +199,7 @@ public:
|
||||
{
|
||||
char name[100];
|
||||
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) {
|
||||
write(rc, text.string(), text.length());
|
||||
close(rc);
|
||||
|
Loading…
Reference in New Issue
Block a user