am 1f758231
: Merge changes I7f696e42,I51c6df3c into jb-mr2-dev
* commit '1f758231c26261bd6ef3ec869ce230c06ed5b596': Make GraphicBuffer a RefBase Fix RefBase debugging. O_CREAT must specify the mode.
This commit is contained in:
commit
483fbb3bef
@ -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